To install this package:
library(devtools)
install_github('jpwrobinson/funk')
library(funk)
To update this package run 'Check' in RStudio.
Documentation is shit.
Functions included are:
Data cleaning
uniques
generic function for counting unique objects (e.g. how many species?)scaler
generic function for scaling and centering continuous covariates, and creating dummy variables for categorical covariatesData visualization
add_labels
for annotating multipanel base plots (thanks Sean Anderson)theme_sleek
for a publication-quality ggplot theme (thanks Sean Anderson and Cameron Freshwater)pairs2
for a correlation matrix, showing Pearson correlations, histograms and scatterplots with LOESS smoothersStatistical modelling
dfa_fits
examine model fit for a DFA object (built from NWFSC tutorial)fit_dfa
fits and plots a DFA model (also from NWFSC)gam_jacknife
runs a jacknife sensitivity analysis for GAMsgam_predict_newdata
predicts fitted GAM relationships for new datagam_predict
performs model diagnostics and predicts fitted relationships for GAM objectsgam_dev_exp
evaluates relative variable importance for GAMs, following Simon Wood and Litzow et al. 2014, Glob. Change Biol.glm_gam_test
compares model fits of GAM and GLM (by AIC)mmi_tvalue
evaluates variable importance by multimodel inference, following Cade (2015)vif_mer
estimates variance inflation factors for lme4 models (thanks Austin Frank)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.