imscalebar | R Documentation |
Make a scalebar to accompany an image.im3d plot
imscalebar(
levels,
col,
nlevels = NULL,
zlim = NULL,
horizontal = TRUE,
lab = "Density",
mar = c(4, 2, 2, 2) + 0.1,
border = NULL,
...
)
levels |
The levels at which z values were cut or a list
returned by |
col |
The plotted colours for each level |
nlevels |
The number of colour levels (inferred from levels when
|
zlim |
The limits of the plotted z (intensity) values of the image |
horizontal |
Whether to make a horizontal or vertical scalebar (default: TRUE) |
lab |
The (single) axis label for the scale bar (default:
|
mar |
The margins for ths plot |
border |
Color for rectangle border (see |
... |
Additional arguments for |
## Not run:
LHMask=read.im3d(system.file('tests/testthat/testdata/nrrd/LHMask.nrrd',package='nat'))
op=par(no.readonly = TRUE)
layout(matrix(c(1, 2), ncol = 2L), widths = c(1, 0.2))
rval=image(imslice(LHMask,10), asp=TRUE)
imscalebar(rval)
par(op)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.