getPrimaryPlotConfig: Get Primary Plot Config

Description Usage Arguments Value

View source: R/uvhydrograph-render.R

Description

Given a list of TS points, some information about the plot to build, will return a named list of gsplot elements to call

Usage

1
2
getPrimaryPlotConfig(timeseries, name, label, ylim, dataSide = 0,
  comparisonOnIndependentAxes = TRUE, doLog = FALSE, ylab)

Arguments

timeseries

list of TS points relavant to primary plot

name

name of item being plotted

label

label of time series

ylim

y range that the time series covers

dataSide

optional for reference and comparison series, integer of what side the time series' y value is on

comparisonOnIndependentAxes

set to false if being plotted on the same axes as another

doLog

Whether or not the item should be placed on a logarithmic axis

ylab

the y-axis label (not to be confused with what is used in legend)

Value

named list of gsplot calls. The name is the plotting call to make, and it points to a list of config params for that call


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.