This is a convenience wrapper around surface_plot,
add_surface_layer, and plot.neurosurf_plot.
It is intended for quick inspection and simple publication-style plots.
Arguments
- lh, rh
Either
SurfaceGeometryobjects or file paths that can be read byread_surf_geometry. At least one must be provided.- data
Optional numeric vector or list of vectors containing vertex-wise data to plot. If a single numeric vector is supplied, it is split across hemispheres in left-to-right order based on the vertex counts of the surfaces. If
NULL, a plain surface is shown.- views
Character vector of named views to display for each hemisphere. See
surface_plotfor valid values.- layout
One of
"grid","row", or"column"controlling how views and hemispheres are arranged.- cmap
Character string naming a colour map for the data layer.
- color_range
Optional numeric vector of length 2 giving the minimum and maximum values for the colour scale.
- show_colorbar
Logical; if
TRUE, draw a colour bar for the data layer.- outline
Logical; if
TRUE, the supplieddataare treated as ROI labels and boundaries are drawn instead of a filled map.- ...
Additional arguments passed through to
add_surface_layer(for examplealpha,outline_col,outline_lwd).
Examples
# \donttest{
geom <- example_surface_geometry()
show_surface_plot(geom, data = rnorm(nrow(coords(geom))))
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
# }