PlotCurve: Plot Curve

View source: R/plot.R

PlotCurveR Documentation

Plot Curve

Description

Creates a single plot object

Usage

PlotCurve(adf, dfrow, newdats, yscale = "log", style = c("modern", "apa"))

Arguments

adf

Data frame (long form) of purchase task data.

dfrow

A row of results from FitCurves

newdats

A newdat dataframe from FitCurves

yscale

Scaling of y axis. Default is "log". Can also take "linear"

style

Plot styling, passed to theme_beezdemand().

Details

Creates individual demand curves

Value

ggplot2 graphical object

Author(s)

Shawn Gilroy shawn.gilroy@temple.edu

Examples

## Creates a single plot from elements of an object created by FitCurves
if (interactive()) {
  fc <- FitCurves(apt, "hs", k = 2, detailed = TRUE)
  PlotCurve(fc$adfs[[1]], fc$dfres[1, ], fc$newdats[[1]])
}

beezdemand documentation built on March 3, 2026, 9:07 a.m.