Description Usage Arguments Value
Draw scale bars
1 2 3 4 5 6 7 | ScaleBars(position = c("bl", "br", "tl", "tr"), xrange, yrange,
xscale = NULL, yscale = NULL, xunit = "", yunit = "",
label_format = "%g %s", basesize = 5, linesize = basesize/4)
ApplyScaleBars(p, position = c("bl", "br", "tl", "tr"), xscale = NULL,
yscale = NULL, xunit = "", yunit = "", label_format = "%g %s",
basesize = 5, linesize = basesize/4)
|
position |
Position to draw scale bars. |
xrange |
Range of x axis. |
yrange |
Range of y axis. |
xscale |
Size of x scale. If is NULL, 1/20 of xrange. |
yscale |
Size of y scale. If is NULL, 1/20 of yrange. |
xunit |
Label of x scale bar, if xscale is NULL, used as unit of x instead. |
yunit |
Label of y scale bar, if yscale is NULL, used as unit of x instead. |
label_format |
Format string for labeling. |
basesize |
Base textsize. |
linesize |
Line size. |
p |
a ggplot object. |
a list of ggplot objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.