Map_WQ_raster: Create waterquality Map with sampling points and optional...

View source: R/map_wq.R

Map_WQ_rasterR Documentation

Create waterquality Map with sampling points and optional histogram

Description

This function wraps the tmap package to help users generate fast and simple data visualization of their WQ_calc raster output along with optional geospatial objects and histogram

Usage

Map_WQ_raster(
  WQ_raster,
  sample_points,
  map_title,
  raster_style = "quantile",
  histogram = TRUE
)

Arguments

WQ_raster

Raster file generated from wq_calc or other GeoTiff file

sample_points

geospatial file (.shp or .gpkg) containing sampling locations

map_title

text used to generate title of map

raster_style

method to process the color scale when col is a numeric variable. Please refer to the style argument in the ?tmap::tm_raster() function for more details (Default is "quantile").

histogram

Option to add or remove a histogram of the data values. (Default is TRUE)

Value

A data visualization of the results


waterquality documentation built on Aug. 8, 2023, 1:07 a.m.