prettyplot {ggplot} | R Documentation |
Build a plot with all the usual bits and pieces.
prettyplot(plot, plotgrob)
plot |
plot |
plotgrob |
title (character vector) |
|
x axis label (character vector) |
|
y axis label (character vector) |
|
legend grobs (list of grobs) |
As well as the plotting area, a plot need:
This function sets up the appropriate viewports and packs the various components in. The viewport is set up so that each component will only take up the amount of space that it requires.
Hadley Wickham <h.wickham@gmail.com>