vis_cont_fit: Visualize a continuous fit

Description Usage Arguments

View source: R/plotting_functions.R

Description

Visualize a continuous fit by plotting the observed points (x,w) and the fit.

Usage

1
vis_cont_fit(x, w, th_w, mod_spec, xplot = c(), th_w0 = c(), show_unc = F, ...)

Arguments

x

The vector of x values for the variable

w

The vector of response values for the variable

th_w

The fit parameter vector

mod_spec

The model specification

xplot

(optional) A vector at which to calculate the fit for the plot. If not provided, a sequence of equally spaced values of length hundred from min(x) to max(x) is used.

th_w0

(optional) A baseline fit to add to the plot (likely the known value of the parameter vector from a simulation)

show_unc

(default: FALSE) Whether to plot the uncertainty for the fit

...

Additional arguments to pass to the plot call for the x-w scatter plot (e.g., to set the x- and y-labels).


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.