View source: R/plotting_functions.R
Visualize a continuous fit by plotting the observed points (x,w) and the fit.
1 | vis_cont_fit(x, w, th_w, mod_spec, xplot = c(), th_w0 = c(), show_unc = F, ...)
|
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). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.