Learn R Programming

rsgeo (version 0.1.7)

plot.rsgeo: Plot Geometries

Description

Plot Geometries

Usage

# S3 method for rsgeo
plot(x, ...)

Value

Nothing.

Arguments

x

an object of class rsgeo

...

arguments passed to wk::wk_plot()

Details

Plotting geometries utilizes wk::wk_plot(). The rust geometries are handled by first converting to an sfc object in the wk::wk_handle() method thus requiring both packages for plotting.

Examples

Run this code
if (rlang::is_installed(c("sf", "wk"))) {
  plot(geom_linestring(1:10, runif(10)))
}

Run the code above in your browser using DataLab