Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


tcplfit2 (version 0.1.7)

plot_allcurves: Plot All Curves Fit with tcplfit2_core - ggplot2

Description

This function takes output from `tcplfit2_core` and generates a basic plot of the observed concentration-response data with all resulting curve fits. A `ggplot` object, which users may customize with additional `ggplot` layers, is returned.

Usage

plot_allcurves(modelfits, conc, resp, log_conc = FALSE)

Value

A `ggplot` object of the observed concentration-response data and all resulting curve fits from `tcplfit2_core`. (Note: The constant model is not included, and only the successful fits will be displayed.)

Arguments

modelfits

Output from `tcplfit2_core`, contains resulting fits for all models used to evaluate the observed concentration-response data.

conc

Vector of concentrations (NOT in log units).

resp

Vector of responses.

log_conc

Logical argument. If `TRUE`, convert the concentrations (x-axis) into log-10 scale. Defaults to `FALSE`.