missingness {FlowScreen}R Documentation

missingness test

Description

Determine the annual amount of missing data and generate an optional missingness plot.

Usage

missingness(
  TS,
  title = FALSE,
  plot = TRUE,
  increasing = TRUE,
  cols = c("white", "blue"),
  omar = c(2, 2, 2, 2),
  mar = c(3, 5, 3, 2)
)

Arguments

TS

A data frame of streamflow time series loaded with read.flows.

title

optional plot title. Default is FALSE indicating no plot title is wanted. Set to TRUE to use the the default plot title, which will look for 'plot title' attribute of the data.frame set by set.plot.titles. All values other values will be used as a custom plot title.

plot

Logical, default is TRUE. If FALSE, does not produce a plot.

increasing

Logical, default is TRUE. If FALSE, years are ordered from top to bottom.

cols

Plot colors, default is white and blue. White always corresponds to NA. Only observed color can be changed.

omar

Vector of length 4, outer margins for the plot.

mar

Vector of length 4, margins for the plot.

Details

Determine the Annual Amount of Missing Data and Generate a Missingness Plot

Value

A list containing:

Author(s)

Paul Whitfield

Examples

robin_path <- system.file("extdata", "ROBIN_example.csv", package = "FlowScreen")

TS <- read.flows(robin_path)
res <- missingness(TS, cols = c("white", "red"), increasing = FALSE)


[Package FlowScreen version 2.1 Index]