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

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