A set of R functions for an easy life and analyses

add_commas | Add commas to a large number |

addggregression | Add a regression or loess to an existing ggplot |

as.numeric.factor | Transform factor to numeric I do not know why this is not in... |

brocolors | Vectors of colors for figures |

contrast_test | Quick plot + contrast hypothesis test to compare two... |

cormatrix_r_p | Correlations of all pairs o variables. |

cor_melt_sub | Prune a set of variables by a certain correlation threshold |

envirplot | Pretty plot of raster object |

fc | Force character |

fn | Force numeric For when you have to transform a data.frame to... |

get.object.name | Transform the object name into string Get the name of the... |

ggdotscolor | Quick scatter plot with points colored by a 3rd variable |

gghistogram | Quick plot + contrast hypothesis test to compare two... |

ggplot_world_map | Create a worldmap |

ggregression | Quick plot + contrast hypothesis test to compare two... |

GRM | Calculate a genetic relationship matrix |

h2MCMC | Proportion of variance of a random factor from a MCMCglmm... |

jet.colors | Color palete jet colors from Matlab |

lm_eq | Quick plot + contrast hypothesis test to compare two... |

makechrX_XXX | Function to transform from chromosome X and position XXX to... |

makeformula | Make formula object from a response and multiple predictor... |

make.pallete.contrast | Add contrast to a color palette |

mean.ci | Return a nicely formatted mean(ci) string from a numeric... |

myqqplot | Produce a qqplot to evaluate p-value inflation. |

nolegendgg | Remove the legend of an existing ggplot |

parsechrX_XXX | Function to transform from SNP name format ChrX_XXX to X and... |

plot_corrplot | Plot correlations of all pairs o variables . |

plot_crayons | Illustration of crayon colors |

plotdotscolor | Quick scatter plot with points colored by a 3rd variable |

prune_corr | Iterative prunning of a set of variables by a certain... |

randomvariance | Get the variance of random effects model |

rasterplot | Pretty plot of raster object |

sink.plot | Print a plot stored in an active binding or object into a... |

sourceNload | Load all scripts or objects of a folder |

starpvalue | Transform a vector of p-values into ***, **, *, ., ns |

startcluster | Start cluster for parallel |

stopcluster | Stop cluster |

substrRight | Extract characters of a string from the right side of it. |

telltime | Tell me the time This function returns the time |

tooktime | Difference in time Given a time point in the past, this... |

transparent | Make a color transparent This function applies the level of... |

write.csv3 | Customized write.csv function. |

write.pdf | A customized pdf function |

write.tsv | Customized write.table function with table separated values. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.