powered by
Pretty theme
theme_pdf(show.ticks = TRUE, legend.pos = NULL)
ggplot2 with plot ticks and positioned legend
boolean Whether to show x- and y-ticks (default=TRUE).
Vector with x and y position of the legend (default=NULL).
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))
Run the code above in your browser using DataLab