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"
)
The position (user) to draw the scale bar
The position (user) to draw the scale bar
The height(in user coordinates) to draw the scale bar
Scalebar parameters as generated by scalebarparams
One of bar
or ticks
Where to align the scale bar relative to x
and y
If style=="ticks"
, the height of interior ticks.
A vector of color names to be repeated for a bar
style scalebar.
Passed when drawing lines associated with the scalebar
Passed when drawing lines associated with the scalebar
addscalebar