plot_delta: 'plot_delta' is a wrapper for ggplot that allows the plotting...

Description Usage Arguments Value

View source: R/data_proc.R

Description

plot_delta is a wrapper for ggplot that allows the plotting of differenced weight metrics by hive, by site, or pooled

Usage

1
2
plot_delta(x, type = "points", by = "none", metric, knots = 25,
  omit = NULL)

Arguments

x

a tibble output by data_proc

type

a string specifying the type of plot; options are "points" for scatterplot or "hist" for histogram; note that for histograms, xlim is set to c(-5, 5), which results in the trimming of extreme values but improves visualization of data. Similarly, for scatterplots, ylim is set to (-0.15, 0.15), which trims extreme values but improves visualization of the smooth fit line

by

a string specifying whether plot should be faceted by "site", "scale", or "none"

metric

a string vector indicating which weight metrics should be plotted

knots

a real number controlling the number of knots in the GAM splines smoothing function; lower number = more smoothing

omit

a string indicating which ScaleIDs shoud be dropped prior to plotting

Value

a plot


sponslerdb/hivescaler documentation built on Dec. 7, 2019, 8:17 p.m.