asdv_internalFit: Linear model fitting of channel A and B time series data

Description Usage Arguments Value

View source: R/fct_ggplots.R

Description

Uses a linear model to fit data from channel B to data from channel A.

A diagnostic plot is produced if 'showPlot = TRUE'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
asdv_internalFit(
  pat = NULL,
  showPlot = TRUE,
  whichPlot = "lm",
  size = 1,
  a_color = "red",
  b_color = "blue",
  alpha = 0.25,
  lr_shape = 15,
  lr_color = "black",
  lr_lwd = 1.5,
  lr_lcolor = "tomato",
  lr_lalpha = 0.45,
  ts_shape = 1,
  xylim = NULL,
  tz = NULL
)

Arguments

pat

PurpleAir Timeseries pat object.

showPlot

Logical specifying whether to generate a model fit plot.

whichPlot

Which plot to show.

size

Size of points.

a_color

Color of time series channel A points.

b_color

Color of time series channel B points.

alpha

Opacity of points.

lr_shape

Symbol to use for linear regression points.

lr_color

Color of linear regression points.

lr_lwd

Width of linear regression line.

lr_lcolor

Color of linear regression line.

lr_lalpha

Opacity of linear regression line.

ts_shape

Symbol to use for time series points.

xylim

Vector of (lo,hi) limits used as limits on the correlation plot axes – useful for zooming in.

tz

a timezone.

Value

A linear model, fitting the 'pat' B channel readings to A channel readings.


MazamaScience/AirSensorDataViewer documentation built on April 2, 2021, 12:24 a.m.