plot_freqmap_wtypes {jcext} | R Documentation |
plot_freqmap_wtypes
Description
Visualises absolute frequencies of the 11 main types from the extended_jc over the period.
Usage
plot_freqmap_wtypes(mat, loni, lati, all.types = TRUE, mytype = NULL,
center = TRUE)
Arguments
mat |
Matrix output from extended_jc [loni,lati,time] |
loni |
Vector with longitude values must be -180, 180 |
lati |
Latitude values |
all.types |
Logical. If TRUE all weather types are plotted in the same plot |
mytype |
Character with the name of the weather type wanted (i.g. N,NE,E,SE,S,SW,W,A,C and U) |
center |
Logical. If TRUE a center map is plotted |
Value
A ggplot2 map
See Also
Examples
## Not run:
library(jcext)
# This is a long running example for plotting results for all types globally
cwtGlobal <- extended_jc(press$msl, press$loni,press$lati, press$dates, gale=FALSE, num_cores=2)
wtypesGlobal <- cwtGlobal$wtypes
plot_freqmap_wtypes(wtypesGlobal,press$loni, press$lati, all.types = TRUE,mytype = NULL ,center = T)
# Plot the global results only for one type
plot_freqmap_wtypes(wtypesGlobal,press$loni, press$lati, all.types = FALSE,mytype = "C" ,center = T)
## End(Not run)
[Package jcext version 0.1.1 Index]