plot.drought: plot.drought

View source: R/plot.drought.R

plot.droughtR Documentation

plot.drought

Description

Plots spi or nspi index of a data.table input with class drought

Usage

## S3 method for class 'drought'
plot(x, label = TRUE, log = TRUE, type = "drought", ...)

Arguments

x

data.table of class drought

label

logical

log

logical

type

character

...

some arguments

Value

ggplot2

Examples

mIndex = computenspi(x = dummyrainfall(1950, 2000),
                stationary = TRUE,
                spiScale = 12,
                dist = 'gamma')
plot(mIndex)

mammask/droughtr documentation built on Feb. 25, 2024, 2:27 p.m.