This function processes climatology hts files created with
hs_tstep
.
p_clim(
files,
type = "line",
hydro.month = 1,
title = "Title",
yaxis = "Value",
y.down = NA,
y.up = NA,
rpal = FALSE,
pal = mapalette,
legend.l = NA
)
A ggplot2 object.
List of climatology file names
Type: "line" (default) or bar"
Starting month or the hydrological year (default = 1)
Title of the plot (default = "Title")
Title of y-axis (default = "Value")
Down limit of y-axis (default = NA)
Up limit of y-axis (default = NA)
Choice of a color palette TRUE/FALSE(default)
Color choice or mapalette (default)
List of text to be displayed in the plot legend (default = NA)
P. Chevallier - Feb 2017 - Sep 2023
The parameter tyoe allows to display a line graph or a bar graph.
The parameter hydro.mont fixes the starting month of the hydrological year.
The y-axis scale can be fixed with y.down and y.up.
By default, the color palette is the R one. It can be change with a color list in the pal parameter or choosing mapalette (default in pal)
Par default station_sensor ids are displayed in the legend.l list. But it can be changed entering a list of texts in legend.l,, which must have the same length as the file number.