MyNixOS website logo
Description

Le-Huynh Truc-Ly's R Code and Templates.

Miscellaneous R functions (for graphics, data import, data transformation, and general utilities) and templates (for exploratory analysis, Bayesian modeling, and crafting scientific manuscripts).

lehuynh

R-CMD-check Lifecycle:stable DOI

Le-Huynh Truc-Ly’s R Code and Templates

lehuynh is an R package comprising a collection of miscellaneous R functions and templates that I find particularly useful.

This package includes:

  • Functions for graphics, data importation, data transformation, and general utilities.
  • Templates for Exploratory Analysis, Bayesian modeling, and crafting scientific manuscripts.

Installation

lehuynh R package can be installed from GitHub with:

if(!requireNamespace("devtools", quietly = TRUE)) {
 install.packages("devtools")
}
devtools::install_github("le-huynh/lehuynh")

This package is also accessible for download via Zenodo with the DOI 10.5281/zenodo.10421410.

Functions

  • ggsave_elsevier( ): Save a plot using ggplot2::ggsave( ). Plot size follows instructions of Elsevier journals.
  • import_data( ): Imports multiple data files of the same format from a specified directory. The output is a named list of imported objects.
  • import_excel( ): Imports an Excel file with multiple sheets and returns a named list of imported sheets.
  • lehuynh_theme( ): Personal ggplot2 theme (white background, black axis, black text, etc.).
  • MinMaxScaling( ): Min-max normalization (min = 0, max = 1).
  • new_project( ): Create a project for reproducible purpose.
  • ppc_brms( ): Plot fitted versus observed values for brmsfit Objects.
  • tidytuesday( ): Create a new folder for #tidytuesday challenge.
  • tsi( ): Calculate TSI (Trophic state index) (Carlson, 1977).

Templates

  • draft_elsevier: Creating an Rmarkdown manuscript for Elsevier journals (example).
  • lehuynh_Bayes_brms: Basic steps to fit, check, and interpret a Bayesian model via brms package.
  • lehuynh_EA: Basic steps to do Exploratory Analysis.
Metadata

Version

0.1.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows