| VizClim | R Documentation |
Plots climatologies as a function of the forecast time for any index output
from Clim() and organized in matrix with dimensions:
c(nmod/nexp, nmemb/nparam, nltime) or c(nmod/nexp, nltime) for the
experiment data
c(nobs, nmemb, nltime) or c(nobs, nltime) for the observational data
VizClim(
exp_clim,
obs_clim = NULL,
toptitle = "",
ytitle = "",
monini = 1,
freq = 12,
limits = NULL,
listexp = c("exp1", "exp2", "exp3"),
listobs = c("obs1", "obs2", "obs3"),
biglab = FALSE,
drawleg = TRUE,
leg = NULL,
title_scale = 1,
sizetit = NULL,
fileout = NULL,
width = 8,
height = 5,
size_units = "in",
res = 100,
...
)
exp_clim |
Matrix containing the experimental data with dimensions: |
obs_clim |
Matrix containing the observational data (optional) with
dimensions: |
toptitle |
Main title, optional. |
ytitle |
Title of Y-axis, optional. |
monini |
Starting month between 1 and 12. Default = 1. |
freq |
1 = yearly, 12 = monthly, 4 = seasonal, ... Default = 12. |
limits |
c(lower limit, upper limit): limits of the Y-axis, optional. |
listexp |
List of experiment names, optional. |
listobs |
List of observational dataset names, optional. |
biglab |
TRUE/FALSE for presentation/paper plot. Default = FALSE. |
drawleg |
TRUE/FALSE to plot the legend or not. Default = TRUE. |
leg |
Deprecated. Use 'drawleg' instead. |
title_scale |
Multiplicative factor to scale title size, optional. |
sizetit |
Deprecated. Use 'title_scale' instead. |
fileout |
Name of output file. Extensions allowed: eps/ps, jpeg, png, pdf, bmp and tiff. The default value is NULL, which the figure is shown in a pop-up window. |
width |
File width, in the units specified in the parameter size_units (inches by default). Takes 8 by default. |
height |
File height, in the units specified in the parameter size_units (inches by default). Takes 5 by default. |
size_units |
Units of the size of the device (file or window) to plot in. Inches ('in') by default. See ?Devices and the creator function of the corresponding device. |
res |
Resolution of the device (file or window) to plot in. See ?Devices and the creator function of the corresponding device. |
... |
Arguments to be passed to the method. Only accepts the following
graphical parameters: |
A figure in popup window by default, or saved to the specified path.
via fileout.
clim <- s2dv::Clim(ts_temp$exp, ts_temp$obs, time_dim = "sdate",
dat_dim = c("dat", "member"))
dim(clim$clim_exp) <- dim(clim$clim_exp)[-3]
dim(clim$clim_obs) <- dim(clim$clim_obs)[-2]
VizClim(clim$clim_exp, clim$clim_obs, toptitle = 'Climatologies',
ytitle = 'K', monini = 11, listexp = 'SEAS5',
listobs = 'ERA5', biglab = FALSE, fileout = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.