p_clim {htsr}R Documentation

Plot climatologies in hydrological year

Description

This function processes climatology hts files created with hs_tstep.

Usage

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
)

Arguments

files

List of climatology file names

type

Type: "line" (default) or bar"

hydro.month

Starting month or the hydrological year (default = 1)

title

Title of the plot (default = "Title")

yaxis

Title of y-axis (default = "Value")

y.down

Down limit of y-axis (default = NA)

y.up

Up limit of y-axis (default = NA)

rpal

Choice of a color palette TRUE/FALSE(default)

pal

Color choice or mapalette (default)

legend.l

List of text to be displayed in the plot legend (default = NA)

Details

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.

Value

A ggplot2 object.

Author(s)

P. Chevallier - Feb 2017 - Sep 2023


[Package htsr version 2.1.5 Index]