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).
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
data(Trent_climate)
# clima_81_10 can be generated from monthly time series by function code{link{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)
}
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ClimClass)
Loading required package: geosphere
Loading required package: sp
Loading required package: ggplot2
Loading required package: reshape2
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ClimClass/bagn_gau.Rd_%03d_medium.png", width=480, height=480)
> ### Name: bagn_gau
> ### Title: Bagnouls - Gaussen graphs
> ### Aliases: bagn_gau
>
> ### ** Examples
>
> data(Trent_climate)
> # clima_81_10 can be generated from monthly time series by function code{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)
+ }
[1] Missing data not allowed!
[1] Missing data not allowed!
[1] Missing data not allowed!
[1] Missing data not allowed!
[1] Missing data not allowed!
[1] Missing data not allowed!
>
>
>
>
>
> dev.off()
null device
1
>