bagn_gau: Bagnouls - Gaussen graphs

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/bagn_gau.R

Description

Plots Bagnouls - Gaussen climatic charts of precipitation and temperature. Conventionally, in this chart the scale of precipitation has a double extension with respect to the scale of temperature (Bagnouls and Gaussen, 1953).

Usage

1
2
3
bagn_gau(clim_norm_sta, save_dir = NULL, format = NULL, main_title = NULL,
  st_name = NULL, trace_grid = TRUE, tick_step = 20, bar_width = 30,
  bar_col = "grey", trace_0.line = TRUE, ...)

Arguments

clim_norm_sta

data frame with climatic normals

save_dir

name of destination directory for graphs (if any).

format

graphical format of graphs; default is NULL.

main_title

main title for all charts; e.g., it may include references to station id. Default is NULL.

st_name

name to be included into graphs titles. Only for file output. Default is NULL.

trace_grid

logic. If TRUE (default) adds a grid.

tick_step

step for Y axis (precipitation). Default is 20 (mm)

bar_width

width of bars in the chart. Default is 30.

bar_col

color of bars. Default is "grey".

trace_0.line

logic. If TRUE (default), a line at P = 0 and T = 0 is traced.

...

arguments to be passed to methods, such as graphical parameters (see par).

Details

clim_norm_sta can be e.g. one element of the output of function climate. See examples.

If format is NULL (default), graphs are sent to the console. Otherwise, a file is produced and saved. format is used only if the graphs are to be sent to files. Values allowed are: "png", "jpeg", "tiff", "bmp".

If one or more data are missing, the chart is not processed.

Most graphic parameters for functions plot, axis, and mtext are accepted.

Value

Bagnouls - Gaussen's charts of precipitation and temperature.

Note

A conflict is generated if parameters already used by the function are passed (e.g. col - use col.main, col.axis, ..., instead).

Author(s)

Emanuele Eccel

References

Bagnouls, F., and Gaussen, H., 1953: Saison seche et indice xerothermique. Docum. pour les Cartes des Prod. Veget. Serie: Generalite, 1 (1953), pp. 1-49

See Also

climate

Examples

1
2
3
4
5
6
7
8
data(Trent_climate)
# clima_81_10 can be generated from monthly time series by function "climate".
par(ask=TRUE)
for(sta in 1:length(clima_81_10)) {
  bagn_gau(clim_norm_sta= clima_81_10 [[sta]], 
   main_title=paste(names(clima_81_10[sta]), "  1981-2010")
	, bar_width=40)
}

ClimClass documentation built on May 2, 2019, 2:20 p.m.