plot_allcurves: Plot All Curves Fit with tcplfit2_core - ggplot2

View source: R/plot_allcurves.R

plot_allcurvesR Documentation

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)

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'.

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.)


tcplfit2 documentation built on Sept. 24, 2024, 1:07 a.m.