knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(tidyverse)
The turnR package contains several functions that I find useful. Feel free to use them and recomended changes and updates as you desire. Thanks!
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("dusty-turner/turnR")
theme_turnRThis is an example which shows you how to use the theme_turnR function for ggplot2.
library(turnR) data("diamonds") diamonds %>% ggplot(aes(x=carat,y=price,color=cut,fill=cut)) + geom_point() + labs(title = "Diamonds Data") + theme_turnR()
theme_turnR_fThis is an example which shows you how to use the theme_turnR_f function for ggplot2.
library(turnR) data("diamonds") diamonds %>% ggplot(aes(x=cut,y=price,color=cut,fill=cut)) + geom_violin() + labs(title = "Diamonds Data") + facet_wrap(~clarity) + theme_turnR_f()
randtest and randtestvisset.seed(256) x=rnorm(100,1,0) y=rnorm(100,1.1,1) rt = randtest(x,y,fun = mean, reps = 10000) rt[2] rt[3] randtestviz(x,y,fun = mean, reps = 10000)
Oh, and everyone likes cats
mycat(CatName = "BeatNavy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.