pdsi_plot: Generate interactive plot US Palmer Drought Severity Index...

Description Usage Arguments Examples

View source: R/pdsi_plot.R

Description

For description of PDSI index and drought/wetness levels, see the README at https://www1.ncdc.noaa.gov/pub/data/cirs/climdiv/drought-readme.txt

Usage

1
2
pdsi_plot(lat = NULL, lon = NULL, address = NULL, nyrs = 10,
  fill = c("RdBu", "BrBG", "PuOr"), halo = TRUE)

Arguments

lat

numeric scalar of position latitude (decimal degrees; WGS84)

lon

numeric scalar of position longitude (decimal degrees; WGS84)

address

character scalar of a street address or place name (e.g. "Mattamuskeet NWR" or "135 Phoenix Rd, Athens, GA"); overrides lat and lon if specified. See example

nyrs

numeric (default = 10); how many years before present would you like the initial graph to display?

fill

one of NULL, "RdBu" (default), "BrBG", or "PuOr". Color scheme to use to indicate the different drought/wet bands behind the PDSI time series. NULL suppresses the background fill.

halo

logical (default TRUE); display thin white border around PDSI time series line to aid viewing in more several categories

Examples

1
2
3
4
5
6
7
## Not run: 
pdsi_plot(34, -83)
pdsi_plot(address = "Alligator River NWR")
pdsi_plot(39, -77, fill = NULL)
pdsi_plot(39, -77, fill = "BrBG", halo = FALSE)

## End(Not run)

adamdsmith/pdsi documentation built on May 28, 2019, 5:39 a.m.