Learn R Programming

GADMTools (version 3.9-1)

gadm_showScale: display a scale on a plot

Description

display a scale for measuring distances on a plot (ggplot2)

Usage

gadm_showScale(plot, where="bl")

Arguments

plot

ggplot2

where

character location of the scale. Can be:

  • "tl" - top left

  • "tr" - top right

  • "bl" - bottom left (default)

  • "br" - bottom right

Value

Object ggplot2

Examples

Run this code
# NOT RUN {
library(GADMTools)
data("Corsica")

plotmap(Corsica) %>% gadm_showScale()
# }

Run the code above in your browser using DataLab