Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scalebar

Scalebar


Description

This function plots the unit at a specified location.

Usage

scalebar(Xlowerleft, Ylowerleft, Xupperright, Yupperright, shifttext, shiftkm,
sizetext)

Arguments

Xlowerleft, Ylowerleft

x and y coordinate of the lower left corner

Xupperright, Yupperright

x and y coordinate of the upper corner

shifttext

on which margin line, starting at 0 counting outwards

shiftkm

how far from the last point the label should be written

sizetext

expansion factor for the text

Author(s)

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

Examples

plot.new()
scalebar(0,0.25,1,0.5,shifttext=-0.05,shiftkm=4e4,sizetext=0.8)

StatDA

Statistical Analysis for Environmental Data

v1.7.4
GPL (>= 3)
Authors
Peter Filzmoser
Initial release
2020-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.