nsink_plot_transport: N-Sink plot function for the nitrogen transport index

View source: R/nsink_plot.R

nsink_plot_transportR Documentation

N-Sink plot function for the nitrogen transport index

Description

This function creates a simple plot with a pre-selected color palette, although different breaks and colors can be provided by the user. This is meant as a quick means to visualize removal efficiency.

Usage

nsink_plot_transport(
  transport_idx,
  breaks = c(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100),
  colors = c("#38A1D0", "#7AB4C0", "#A2C8B0", "#C3DC9D", "#E2F088", "#F5E871", "#F9C159",
    "#F99844", "#F56A2E", "#EF2820")
)

Arguments

transport_idx

A transport index raster that can be created via nsink_generate_static_maps.

breaks

A vector of values specifying breakpoints to break the transport raster. Must be one more than number of colors.

colors

A vector of hexcodes for the colors


USEPA/nsink documentation built on Feb. 8, 2025, 12:27 p.m.