plotly_validation: Link validation plot with plot.ly

Description Usage Arguments Examples

View source: R/plot_validation.R

Description

Link validation plot with plot.ly

Usage

1
2
plotly_validation(links, volume, count, color_field = NULL, id = NULL,
  show_lm = TRUE)

Arguments

links

Model link table as a tidy data frame, with each row representing an analysis link. The function assumes that the data is already tidy: two-way links should already be converted to single values, etc.

volume

Character string identifying the modeled volume in the link table.

count

Character string identifying the calibration/validation counts in the link table.

color_field

(Optional) character string identifying variable to color observations by, for example facility type.

id

A link identification field. If NULL, then use rownames(links)

show_lm

If TRUE, plot a linear model regression fit alongside the fitted model's equation. Default FALSE will print spline regression fit without any equation.

Examples

1
plotly_validation(links, "volume", "count", "facility_group")

pbsag/outviz documentation built on Dec. 7, 2019, 5:50 a.m.