knitr::opts_chunk$set(echo = FALSE) knitr::opts_chunk$set(warning = FALSE) library(correltools) library(ggplot2) theme_set(theme_correlaid())
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
knitr::kable(head(mtcars))
You can also embed plots, for example:
ggplot(mtcars, aes(x = hp, y = mpg, color = factor(cyl))) + geom_point()+ scale_color_correlaid_d()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.