autoplot.growthcurve: Create a ggplot for a Growth Curve

Description Usage Arguments Value Examples

Description

Create a ggplot for a Growth Curve

Usage

1
2
3
autoplot.growthcurve(object, show_fit = TRUE, show_data = TRUE,
  show_maxrate = TRUE, show_asymptote = FALSE, xscale = "identity",
  yscale = "identity", ...)

Arguments

object

A fit for some growth data (a growthcurve object)

show_fit

Whether or not to show the fitted curve (default: TRUE)

show_data

Whether or not to show the original data (default TRUE)

show_maxrate

Whether or not to show a tangent line where the maximum growth rate occurs (default TRUE)

show_asymptote

Whether or not to indicate the maximum growth level (default FALSE)

xscale

Transformation to apply to X axis values (e.g., log, sqrt. Default: identity). See scale_continuous.

yscale

Transformation to apply to Y axis values (e.g., log, sqrt. Default: identity). See scale_continuous.

...

Optional formatting arguments. Includes xlab, ylab, title, subtitle, fit.color, fit.linetype, fit.size, data.color, data.fill, data.shape, data.size, data.stroke, maxrate.color, maxrate.linetype, maxrate.size, asymptote.color, asymptote.linetype, asymptote.size

Value

A ggplot object

Examples

1
2
3
4
5
## Not run: 
# Get a logistic fit for some data and plot it
lfit <- fit_growth_logistic(mydata, Time, OD600)
autoplot(lfit, title="My Growth Data")
## End(Not run)

briandconnelly/growthcurve documentation built on May 13, 2019, 5:13 a.m.