plot.hobo: Create an interactive dygraph/plot of processed HOBO logger...

Description Usage Arguments Value Examples

Description

Create an interactive dygraph/plot of processed HOBO logger data

Usage

1
2
3
## S3 method for class 'hobo'
plot(x, stn = NULL, flag = 36, save = FALSE,
  out_dir = NULL, verbose = TRUE, ...)

Arguments

x

hobo data.frame created by read_hobo_csv

stn

character string indicating a relatively short, but descriptive name for the data logger location. This must be specified. See examples.

flag

number of daily measurements *below which* temperature calculations are flagged to indicate a potentially inadequate number of observations. Default (36) flags daily values based on 75% or less of expected observations (i.e., 48 30-min observations per day). Flagged days are indicated by a red bar along the x-axis.

save

logical (default 'FALSE') indicating whether to save the time series plot to a standalone 'html' file named based on 'stn' argument. The 'html' is saved to the current working directory unless 'out_dir' is specified.

out_dir

character string indicating the desired directory to output the 'html' file if 'save = TRUE'. Defaults to current working directory.

verbose

logical (default 'TRUE') indicating whether to suppress messaging indicating where output ‘html' file was saved, if 'save = TRUE'#’

...

further arguments to plot (ignored)

Value

a dygraph interactive time series plot of daily average, minimum, and maximum stream temperatures

Examples

1
2
3
4
5
6
7
8
## Not run: 
test <- read_hobo_csv(system.file("extdata", "test.csv", package = "r4streams"))
plot(test, "Test deployment")
plot(test, "Another test", save = TRUE, out_dir = "./test_output")
plot(test, "Third test, slightly more descriptive", save = TRUE,
     out_dir = "./test_output")

## End(Not run)

adamdsmith/r4streams documentation built on May 14, 2019, 10:33 a.m.