scaleBar: Scale Bar

Description Usage Arguments Details Author(s) See Also Examples

Description

add a scale bar onto a plot of a spatial object

Usage

1
2
3
4
scaleBar(ref, max=1000,nbreaks=5, unit="m", x=NULL, y=NULL,wgs=TRUE, breaks=NULL,
                   col=c("black","white"), 
                   border="black",height=1,
                   cex=1,axis.off=1,font=1,digits=1)

Arguments

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 bars

border

color of the boarders of the boxes

height

height of the boxes in character units

cex

size of teh 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

Details

Defaults to drawing in the bottom left corner

Author(s)

Connor F. White

See Also

scaleBar2, xdistSpacing, north

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
  }

ConnorFWhite/AssFunc documentation built on May 20, 2019, 4:07 p.m.