plot.timeseries: A Plotting function used to plot peaks in a time series

Description Usage Arguments Examples

View source: R/plot.timeseries.R

Description

This function provides a plotting framework for exploring the data output from the timeseries.peaks() function

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'timeseries'
plot(
  data,
  file,
  sample = NULL,
  samp.div = TRUE,
  time.start = min(data$Time),
  time.stop = max(data$Time)
)

Arguments

data

output from the timeseries.peaks() function

file

the name of the file the user wishes to plot

sample

the specific sample the user wishes to plot

samp.div

A logical call specifying whether or not to divide plot by sample dividers or not. Defaults to TRUE

time.start

option to specify when you want the plot to start

time.stop

option to specify when you want the plot to stop

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ts.output <- timeseries.peaks(directory = path.package("peak.gas"))
# File wide examples
plot(ts.output, file = "vn_veg_07292021.txt")
plot(ts.output, file = "vn_veg_07292021.txt", time.start = "2021-08-02 13:30:00")
plot(ts.output, file = "vn_veg_07292021.txt", time.stop = "2021-08-02 12:40:00")
plot(ts.output, file = "vn_veg_07292021.txt", time.start = "2021-08-02 12:45:00", time.stop = "2021-08-02 13:00:00")
# Specific Sample examples
plot(ts.output, file = "vn_veg_07292021.txt", sample = "NS_Veg")
plot(ts.output, file = "vn_veg_07292021.txt", sample = "NS_Veg", time.start = "2021-08-02 13:01:00")
plot(ts.output, file = "vn_veg_07292021.txt", sample = "NS_Veg", time.stop = "2021-08-02 12:54:00")
plot(ts.output, file = "vn_veg_07292021.txt", sample = "NS_Veg", time.start = "2021-08-02 12:56:00", time.stop = "2021-08-02 13:01:00")

andersonjake1988/peak.gas documentation built on Jan. 20, 2022, 11:16 p.m.