plot_freqmap_wtypes: plot_freqmap_wtypes

Description Usage Arguments Value See Also Examples

Description

Visualises absolute frequencies of the 11 main types from the extended_jc over the period.

Usage

1
2
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

extended_jc

Examples

 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)

jcext documentation built on May 1, 2019, 10:27 p.m.