plot_spatial_data: Plot example maps of spatial data

Description Usage Arguments Value Examples

Description

Plot example maps of spatial data

Usage

1
2
3
4
5
6
7
plot_spatial_data(
  spatial_data = flame_data,
  lake_boundaries = peter_paul_bounds,
  samples_to_plot = data.frame(Year = 2019, DOY = c(165, 210, 228), stringsAsFactors =
    FALSE),
  var_cols = c("BGApc_ugL_tau", "ODO_percent_tau", "pH_tau")
)

Arguments

spatial_data

data frame containing spatial locations and measurements of one or more variables; see flame_data for default and formatting

lake_boundaries

sf data frame containing boundaries for lakes; see peter_paul_bounds and str(peter_paul_bounds) for default and formatting

samples_to_plot

a data frame specifying which info from spatial_data should be used for plotting

var_cols

character vector, column names that hold measurements of different variables

Value

a ggplot object with the specified maps of spatial data

Examples

1
2
3
4
5
plot_spatial_data(
  spatial_data = flame_data,
  samples_to_plot = data.frame(Year = 2019, DOY = c(165, 210, 228), stringsAsFactors = FALSE),
  var_cols = c("BGApc_ugL_tau")
)

cbuelo/tvsews documentation built on Jan. 21, 2022, 1:31 a.m.