Learn R Programming

ClimClass (version 2.1.0)

bagn_gau: Bagnouls - Gaussen graphs

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

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).

Value

Bagnouls - Gaussen's charts of precipitation and temperature.

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.

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

Run this code

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)
}


Run the code above in your browser using DataLab