p_gaps {htsr} | R Documentation |
Plot of data inventory
Description
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.
Usage
p_gaps(files, title = "Inventory", BW = FALSE, margin = 0.1)
Arguments
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 |
Details
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.
Value
A ggplot2 object
Author(s)
P. Chevallier - Nov 2017 - Sep 2023