theme_pdf | R Documentation |
Pretty theme
theme_pdf(show.ticks = TRUE, legend.pos = NULL)
show.ticks |
boolean Whether to show x- and y-ticks (default=TRUE). |
legend.pos |
Vector with x and y position of the legend (default=NULL). |
ggplot2 with plot ticks and positioned legend
library(ggplot2)
library(ggrastr)
data = rnorm(100)
colors = (1:100/100)
ggplot() + geom_point(aes(x=data, y=data, color=colors)) + theme_pdf(FALSE, legend.pos=c(1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.