Description Usage Arguments Value See Also Examples
Visualises absolute frequencies of the 11 main types from the extended_jc over the period.
1 2 | plot_freqmap_wtypes(mat, loni, lati, all.types = TRUE, mytype = NULL,
center = TRUE)
|
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 |
A ggplot2 map
1 2 3 4 5 6 7 8 9 10 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.