plotscalebar: Raw Plot Scale Bar

View source: R/scalebar.R

plotscalebarR Documentation

Raw Plot Scale Bar

Description

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.

Usage

plotscalebar(
  x,
  y,
  ht,
  params,
  style = "bar",
  adj = c(0, 0),
  tick.cex = 0.7,
  bar.cols = c("black", "white"),
  lwd = 1,
  linecol = "black"
)

Arguments

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 bar or ticks

adj

Where to align the scale bar relative to x and y

tick.cex

If style=="ticks", the height of interior ticks.

bar.cols

A vector of color names to be repeated for a bar style scalebar.

lwd

Passed when drawing lines associated with the scalebar

linecol

Passed when drawing lines associated with the scalebar

See Also

addscalebar


prettymapr documentation built on June 9, 2022, 5:09 p.m.