plot_allcurves {tcplfit2}R 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.)


[Package tcplfit2 version 0.1.9 Index]