scalebar: Draw a scalebar

Description Usage Arguments Examples

View source: R/MapTools.R

Description

Draw a scalebar on a map,

Usage

1
2
scalebar(loc, length, unit = "km", degrees = TRUE, cex = par("cex"),
  scale = 1, ...)

Arguments

loc

Where to put the bar (longitude and latitude)

unit

The unit to use on for the scalebare. For autocomputed size, several units are possible: kilometer: "km", mile "mi", nautical mile "nmi", meter "m" or league "li"

degrees

A logical argument TRUE is the shape file is in degrees and FALSE is the shapefile is projected

scale

Ratio between projected map unit and physical distence unit. To be use if degrees = FALSE

lenght

How long it should be

Examples

1
2
3
4
require(sp)
data(Leymus)
plot(west)
scalebar(c(-20.33,63.3),8)

giby/Linarius documentation built on May 17, 2019, 4:20 a.m.