png_default | R Documentation |
This function implements my *personal* favorite setup for beamer pngs. This does not currenty contain details on colors.
png_default( p, font = NULL, legend.position = "bottom", legend.direction = "horizontal" )
p |
The input ggplot2 object |
font |
Font for the graphics. Default is NULL. |
legend.position |
Legend position passed to ggplot2. Default is bottom. |
legend.direction |
Legend direction passed to ggplot. Default is horizontal. |
library(ggplot2) p <- ggplot(diamonds, aes(depth, colour = cut)) + geom_density() png_default(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.