plot: Plot transect object

Description Usage Arguments Details Value Examples

Description

Plot transects with along with basic attributes

Usage

1
2
## S3 method for class 'transect'
plot(x, ...)

Arguments

x

object of class transect

...

other arguments passed to ggplot2::geom_sf

Details

plot.transect plots the transect using a minimal theme, and place a label with the ID and attributes over its centroids.

Value

An object of class ggplot.

Examples

1
2
3
(file_path <- system.file('extdata', 'transects-long.geojson', package = 'coastr'))
(transect <- read_transect(file_path, profile = T, start_from = 'N'))
plot(transect)

geofis/coastr documentation built on July 3, 2020, 6:33 p.m.