plotscalebar | R Documentation |
Just in case anybody is hoping to draw a custom scalebar, this is the method used to plot it. If you don't know what this is, you should probably be using addscalebar.
plotscalebar(
x,
y,
ht,
params,
style = "bar",
adj = c(0, 0),
tick.cex = 0.7,
bar.cols = c("black", "white"),
lwd = 1,
linecol = "black"
)
x |
The position (user) to draw the scale bar |
y |
The position (user) to draw the scale bar |
ht |
The height(in user coordinates) to draw the scale bar |
params |
Scalebar parameters as generated by scalebarparams |
style |
One of |
adj |
Where to align the scale bar relative to |
tick.cex |
If |
bar.cols |
A vector of color names to be repeated for a |
lwd |
Passed when drawing lines associated with the scalebar |
linecol |
Passed when drawing lines associated with the scalebar |
addscalebar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.