plot_spi_forecast: function for plotting spi for station data

Description Usage Arguments

View source: R/plot_spi_forecast.R

Description

function for plotting spi for station data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
plot_spi_forecast(
  ind_dat,
  full_dat_NA,
  selpoints,
  pdims,
  plot_title = TRUE,
  title = "",
  output = NULL,
  plotdir = NULL,
  plotname = NULL,
  ylims = NULL,
  plotstart = NULL,
  pwidth = 2000,
  pheight = 1300,
  pres = 250,
  cex = 1,
  text_cex = 1,
  show.grid.h = TRUE,
  ...
)

Arguments

ind_dat

1 List of climindvis_index objects (as returned by calc_index). You can either plot

  • different indices calculated from the same dataset (...$data_info$data_name has to be the same for all element of ind_dat) or

  • one indice for different datasets (class of list elements and ...$index_info$iname have to be the same for all element of ind_dat)

selpoints

Array to select subset of points to plot,there are two options:

  • character array of station names (works only if names are defined in climindvis_index objects ...$data_info$pnames and if they are the same for all objects in ind_dat)

  • integer array of station indices (works only if coordinates of all objects in ind_dat are the same)

ylims

Limits of xaxis for plot of format ylims=c(ymin,ymax). If not provided limits are taken from the data

plotstart

Start year of plot, e.g plotstart = 1990 ends at end of forecast time.

pwidth, pheight, pres

Width,Height and Resolution of plot (see width in png).If output=="pdf" the heights and widths are adjusted to pwidth/res and pheight/res. Default values are pwidth=2000,pheight=1300,pres=250.

cex

cex of plots (see par()). Default=1

output:

type of output xxx auch write moeglich

plotdir:

directory where files/plots are saved to.

plotname:

string for outputnames, the final name will be outfilestring_month/season/etc..


Climandes/ClimIndVis documentation built on Oct. 24, 2021, 10:52 a.m.