view_comp | R Documentation |
Create a single image which displays multiple image files. Tailored to support
composite layouts of plots from view_xifti
.
view_comp(
img,
ncol = NULL,
nrow = NULL,
legend = NULL,
title = NULL,
legend_height = 0.3,
title_height = 0.1,
title_fsize = 5,
newpage = is.null(fname),
fname = NULL,
...
)
img |
Character vector of paths to images to include. They will be arranged by row. |
ncol , nrow |
Control the layout of the composite image. |
legend |
File path to a legend image to add, or |
title |
A length-one character vector to use as the title, or |
legend_height , title_height |
Heights of the legend and title, if
applicable. Specified relative to all the plots, so |
title_fsize |
Multiplier for font size. Default: |
newpage |
Call |
fname |
If |
... |
Additional arguments to |
Requires the following packages: png
, grid
, gridExtra
How it works: the non-legend images (plots) are composited in a call to
grid::arrangeGrob
. If a title or legend exists, it's added to the top and
bottom, respectively, of the plots after with another call to grid::arangeGrob
.
The composite plot
Other visualizing:
view_surf()
,
view_xifti()
,
view_xifti_surface()
,
view_xifti_volume()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.