These add functionality to base R sort of like apps on a new cell phone.
# # Libraries I use on a regular basis-----
install.packages("devtools") # install new things
install.packages("tidyverse") # dplyr and piping and ggplot etc
install.packages("lubridate") # dates and times
install.packages("scales") # scales on ggplot ases
install.packages("readxl") # read in excel files
install.packages("skimr") # quick summary stats
install.packages("janitor") # clean up excel imports
install.packages("patchwork") # arrange multiple plots per page
install.packages("ggThemeAssist") # helps reformat code - only run library one time
install.packages("plotly") # cool ggplot things
install.packages("colorRamps") # adds cool color templates
# Other packages that are used for special work like heat maps
install.packages("hms") # useful for time series
install.packages("akima") # imputing new values
install.packages("car") # stats and ANOVA - essential
install.packages("emmeans") # estimated marginal means for unbalanced designs
install.packages("multcomView") # paired comparisons
install.packages("Rmisc") # stats
install.packages("Hmisc") # stats
install.packages("broom") # output models cleanly
install.packages("GGally") # special ggplot graphs
install.packages("corrplot") # correlation plot matricies
install.packages("survminer") # survival analysis
install.packages("survival") # survival analysis
install.packages("pwr") # power analysis
install.packages("vegan") # PCA and other sorts of multidimensional
install.packages("factoextra") # more PCA
# mixed models
install.packages("lmerTest") # mixed model Anovas
install.packages("blme") # Bayesian mixed model Anovas
# these are special that you likely will not use
# install.packages("RMySQL") # access MySQLserver
# install.packages("xts") # not used
# install.packages("rLakeAnalyzer") # used for the lake analyzer scripts
# install.packages("LakeMetabolizer")
# install.packages("zoo") # helps with time series
# Run Once and in Addins ----
library(styler)
library(ggThemeAssist)
I use these in almost every script I run so you will see these over and over
# Load in all scripts ---
library(tidyverse)
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ──
## ✓ ggplot2 3.3.3 ✓ purrr 0.3.4
## ✓ tibble 3.1.2 ✓ dplyr 1.0.6
## ✓ tidyr 1.1.3 ✓ stringr 1.4.0
## ✓ readr 1.4.0 ✓ forcats 0.5.1
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
library(lubridate)
##
## Attaching package: 'lubridate'
## The following objects are masked from 'package:base':
##
## date, intersect, setdiff, union
library(scales)
##
## Attaching package: 'scales'
## The following object is masked from 'package:purrr':
##
## discard
## The following object is masked from 'package:readr':
##
## col_factor
library(readxl)
library(skimr)
library(janitor)
##
## Attaching package: 'janitor'
## The following objects are masked from 'package:stats':
##
## chisq.test, fisher.test
library(patchwork)