There was an error while loading. Please reload this page.
Illustration of the various elements of a ggplot. The names are taken from the corresponding opts() parameters.
opts()
(work in progress)
gridSVG
library(ggplot2) p <- ggplot(mtcars, aes(mpg, wt, colour = factor(cyl))) + geom_point() + facet_grid(vs ~ am, scales = "free") + opts(title="Title", panel.margin=unit(2, "line"), plot.margin = unit(rep(3, 4), "lines")) vp <- viewport(width=0.9, height=0.9) grid.newpage() print(p, vp=vp) grid.rect(vp=vp, gp=gpar(lty=2))