plot_map_wqis: Plot Map of Water Quality Index Categories.

plot_map_wqisR Documentation

Plot Map of Water Quality Index Categories.

Description

Creates a ggplot2 object with a polygon of British Columbia with the Water Quality Index categories indicated by the fill colour of points.

Usage

plot_map_wqis(
  data,
  x = "Long",
  y = "Lat",
  size = 3,
  shape = 21,
  keep = NULL,
  input_proj = NULL
)

Arguments

data

A data.frame of WQI values to plot.

x

A string of the column in data to plot on the x axis.

y

A string of the column in data to plot on the y axis.

size

A number of the point size or string of the column in data to represent by the size of points.

shape

An integer of the point shape (permitted values are 21 to 25) or string of the column in data to represent by the shape of points.

keep

An optional character vector indicating which columns in addition to x and y to keep before dropping duplicated rows to avoid overplotting.

input_proj

An optional valid proj4string. Defaults to ("+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs").

See Also

plot_wqis and plot_map

Examples

## Not run: 
 demo(fraser)

## End(Not run)

bcgov/wqindex documentation built on Feb. 17, 2024, 9:23 a.m.