View source: R/plot_data_area.R
plot_data_area | R Documentation |
Quick plot of any shape file overlaid with lat, lon data.
plot_data_area(points, polygons, crs = 4269)
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 |
A figure
Other plotting:
plot_shapefile()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.