print.multipanelfigure | R Documentation |
Prints and object of class multipanelfigure
.
## S3 method for class 'multipanelfigure'
print(x, newpage = TRUE, ...)
x |
An object of class |
newpage |
Logical. If |
... |
Passed from other print methods. |
The input x
is invisibly returned, but the method is mostly
invoked for the side effect of printing the plot to the current device.
Graumann, J., and Cotton, R.J. (2018). multipanelfigure: Simple Assembly of Multiple Plots and Images into a Compound Figure. Journal of Statistical Software 84. doi: 10.18637/jss.v084.c03
p <- lattice::xyplot(dist ~ speed, cars)
figure <- multi_panel_figure(
width = 100, height = 100,
rows = 1, columns = 1
)
# With no panels, printing shows the layout
print(figure)
figure <- fill_panel(figure, p)
# After a panel is added, printing shows the plot.
print(figure) # shows plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.