plot_curve_params_one_ab {serocalculator} | R Documentation |
Graph an antibody decay curve model
Description
Graph an antibody decay curve model
Usage
plot_curve_params_one_ab(
object,
verbose = FALSE,
alpha = 0.4,
n_curves = 100,
n_points = 1000,
log_x = FALSE,
log_y = TRUE,
rows_to_graph = 1:min(n_curves, nrow(object)),
xlim = c(10^-1, 10^3.1),
...
)
Arguments
object |
a |
verbose |
verbose output |
alpha |
(passed to
|
n_curves |
how many curves to plot (see details). |
n_points |
Number of points to interpolate along the x axis (passed to |
log_x |
should the x-axis be on a logarithmic scale ( |
log_y |
should the Y-axis be on a logarithmic scale (default, |
rows_to_graph |
which rows of |
xlim |
range of x values to graph |
... |
Arguments passed on to
|
Details
n_curves
and rows_to_graph
In most cases, curve_params
will contain too many rows of MCMC samples for all of these samples to be plotted at once.
Setting the
n_curves
argument to a value smaller than the number of rows incurve_params
will cause this function to select the firstn_curves
rows to graph.Setting
n_curves
larger than the number of rows in ' will result all curves being plotted.If the user directly specifies the
rows_to_graph
argument, thenn_curves
has no effect.
Value
a ggplot2::ggplot()
object
Examples
library(dplyr) # loads the `%>%` operator and `dplyr::filter()`
load_curve_params("https://osf.io/download/rtw5k/") %>%
dplyr::filter(antigen_iso == "HlyE_IgG") %>%
serocalculator::plot_curve_params_one_ab()