viewport_default {ggplot} | R Documentation |
Set up named viewports that the other components use.
viewport_default(plot, guides=guides_basic(plot), scales=scales_default(plot))
plot |
plot object |
guides |
guides grobs |
scales |
scales grobs |
This function sets up a vpTree
in which all of
the components of a plot will be placed. This allows for a clean
separation between the generation of plot objects, and their placement, and
means none of the components have to know anything about the others.
This function is responsible for the overall layout of the plot, ie where the panels, labels and axes go. In future, I will add more viewport layout functions so that you can have the same layout as, e.g., the trellis default.
Hadley Wickham <h.wickham@gmail.com>