pdf_default | R Documentation |
This function implements my *personal* favorite setup for article pdfs. This does not currenty contain details on colors. Note that the CM Roman font will not show immediately when called in the Rstudio plot pane, but will be correctly input in the resulting pdf file.
pdf_default(p, CMRoman = NULL)
p |
The input ggplot2 object |
CMRoman |
Font for the graphics. Default is CM Roman. |
library(ggplot2) p <- ggplot(diamonds, aes(depth, colour = cut)) + geom_density() pdf_default(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.