plot_data_area: Plots survey data and shapefile

View source: R/plot_data_area.R

plot_data_areaR Documentation

Plots survey data and shapefile

Description

Quick plot of any shape file overlaid with lat, lon data.

Usage

plot_data_area(points, polygons, crs = 4269)

Arguments

points

Data frame. Survdat data points (Must include "LAT" and "LON" fields)

polygons

sf object. The polygons (shapefile)

crs

Character string. Defines the coordinate reference system for projection

Value

A figure

See Also

Other plotting: plot_shapefile()

Examples

## Not run: 

# Plot 2019 bottomline survey data with EPU regions
# Read in shapefile
area <- sf::st_read(dsn = system.file("extdata","EPU.shp",package="survdat"),quiet=T)

# Get data
data <- get_survdat_Data(channel)
# Filter 2019 data
filteredData <- data$survdat %>% dplyr::filter(YEAR == 2019)
plot_data_area(points= filteredData,polygons = area)


## End(Not run)

andybeet/survdat documentation built on Nov. 9, 2023, 10:11 a.m.