View source: R/plot.droughtclass.R
plot.droughtclass | R Documentation |
Plots spi or nspi index of a data.table input with class drought
## S3 method for class 'droughtclass'
plot(x, label = TRUE, log = TRUE, type = "droughtclass", ...)
x |
data.table of class droughtclass |
label |
logical |
log |
logical |
type |
character |
... |
some arguments |
ggplot2
mIndex = computenspi(x = dummyrainfall(1950, 2000),
stationary = TRUE,
spiScale = 12,
dist = 'gamma')
indexClass = computeclass(mIndex)
plot(indexClass)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.