plot_series: plotting function for series datastream.

View source: R/plot_series.R

plot_seriesR Documentation

plotting function for series datastream.

Description

simple function to plot series data quickly.

Usage

plot_series(
  s,
  show_gaps = TRUE,
  new = TRUE,
  points = TRUE,
  lines = TRUE,
  pch = 16,
  cex = 0.5,
  col.lines = "black",
  col.points = "black",
  col.gaps = col.lines,
  ylim,
  gap_plotting_buffer = 0.15,
  ylab = "Depth (meters)",
  xlab = "",
  axes = TRUE,
  ...
)

Arguments

s

a series data stream or a dataframe approximating one. requires columns numeric Date, numeric Depth.right now also requires to have at least 2 rows that is so i can calculate the sampling period. see readme for more information about this.

show_gaps

boolean defaults to TRUE. If TRUE, will print blocks at the top of the plotting area to indicate data gaps.

new

boolean defaults to TRUE. draw a new plot if this is TRUE otherwise draw on whatever you have up.

points

boolean defaults to TRUE. draw points.

lines

boolean defaults to TRUE. draw lines.

pch, cex

just reasonable defaults do whatever you want.

col.lines

color of the lines if drawn.

col.points

color of the points if drawn.

...

all the other good plotting stuff. gets passed to plot, points, and lines so think about it.


williamcioffi/sattagutils documentation built on June 3, 2022, 10:21 a.m.