Learn R Programming

terra (version 1.7-71)

add_box: draw a box

Description

Similar to box allowing adding a box around a map. This function will place the legend in the locations within the mapped area as delineated by the axes.

Usage

add_box(...)

Arguments

...

arguments passed to lines

Examples

Run this code
v <- vect(system.file("ex/lux.shp", package="terra"))
plot(v)
add_box(col="red", lwd=3, xpd=TRUE)

Run the code above in your browser using DataLab