p_gaps | R Documentation |
This function plot an inventory of the data from one or several station(s)-sensor(s).
It is based on the .gap files provided by the function f_properties
. It allows
to highlight the gaps in time-series.
p_gaps(files, title = "Inventory", BW = FALSE, margin = 0.1)
files |
List of series to plot (hts files) |
title |
Plot title, default is "Inventory" |
BW |
Black & white plot TRUE / FALSE (default) |
margin |
Reserved space for label writing - default is 0.1 |
The inventories are represented with lines displayed bottom-up in the order of the files list. They are labeled with the station_sensor ids.
Colors are the default colors of ggplot2. For a black & white plot, precise BW = TRUE
The margin value is a reserved space for writing the label at the end of each line. Default value is 0.1 of the difference between the minimum and the maximum date. It shall be adjusted following the length of the labels.
A ggplot2 object
P. Chevallier - Nov 2017 - Sep 2023
f_properties
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.