plotStorms | R Documentation |
This plotStorms()
function allows plotting storm track data stored in a StormsList
object.
plotStorms(
sts,
names = NULL,
category = NULL,
xlim = NULL,
ylim = NULL,
labels = FALSE,
by = 8,
pos = 3,
legends = "topright",
loi = TRUE,
dynamicPlot = FALSE
)
sts |
|
names |
character vector. Name(s) of the storm(s) in capital letters.
If |
category |
numeric vector. Category of storms to be plotted among the level in
the windscale provided in |
xlim |
numeric vector. The x limits of the plot. |
ylim |
numeric vector. The y limits of the plot. |
labels |
logical. Whether (TRUE) or not (FALSE, default setting) to add labels with the name of the storm and the indices and ISO times of the observation. |
by |
numeric. If |
pos |
numeric. If |
legends |
character. Indicates where to plot the legend, |
loi |
logical. Whether (TRUE, default setting) or not (FALSE) to plot the extent of the buffered location of interest on the map. |
dynamicPlot |
logical. Whether (FALSE, default setting) or (TRUE) to plot the data dynamicaly using leaflet library |
A plot of the storm track data.
#' #Creating a stormsDataset
dev.off()
sds <- defStormsDataset()
# Getting storm track data for tropical cyclone Pam (2015)
pam <- defStormsList(sds = sds, loi = "Vanuatu", names = "PAM")
# Plotting Pam over Vanuatu with labels every 24h
plotStorms(sts =pam, labels = TRUE)
# Plotting Pam over Vanuatu with labels every 6h on the right side of the observations
plotStorms(pam, labels = TRUE, by = 2, pos = 4)
# dynamicPlot mode
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.