Description Usage Arguments Details Author(s) See Also
add a scale bar onto a plot of a spatial object
1 2 3 |
ref |
a spatial object that was plotted, whose coordinates you want the points to be in |
max |
the maximum distance you want |
nbreaks |
the number of equally spaced points you want |
unit |
the units that correspond to max, or breaks |
x |
The x location of the first point |
y |
the y location of the first points |
wgs |
whether the map is in wgs 1984 |
breaks |
if supplied max and nbreaks is ignored. This is a vector of distances that points will be returned for |
col |
color of the line |
cex |
size of the text labels |
axis.off |
character units that the axis labels are away from teh boxes |
font |
font of the axis units |
digits |
number of digits to round the axis labels to |
Add a scalebar onto a plot
Connor F. White
scaleBar, north, xdistSpaceing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.