plotDataCompleteness: Time plots of variable completeness

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotDataCompleteness.R

Description

Time plots of variable completeness

Usage

1

Arguments

MESHdata

Required. A data frame of MESH time series, as returned by read_tb0

Value

Returns a ggplot2 wrapped facetted plot of data completeness (as a line) for each station. Missing periods are indicated by gaps in the line. The plot is facetted by the variable station - so you can change the facetting.

Author(s)

Kevin Shook

See Also

read_tb0

Examples

1
2
3
4
5
6
7
8
## Not run: 
qvals <- read_tb0("MESH_input_streamflow.tb0", NAvalue = -0.01, values_only = TRUE)
p <- plotDataCompleteness(qvals)
# change facetting
# the y-axis is unimportant, so the plots can be squished vertically
library(ggplot2)
p <- p + facet_wrap(~station, ncol = 2)
## End(Not run)

CentreForHydrology/MESHr documentation built on Jan. 11, 2021, 8:34 p.m.