PlotCurve: Plot Curve

Description Usage Arguments Details Value Author(s) Examples

View source: R/plot.R

Description

Creates a single plot object

Usage

1
PlotCurve(adf, dfrow, newdats, yscale = "log")

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"

Details

Creates individual demand curves

Value

ggplot2 graphical object

Author(s)

Shawn Gilroy <shawn.gilroy@temple.edu>

Examples

1
2
3
4
## Creates a single plot from elements of an object created by FitCurves

fc <- FitCurves(apt, "hs", k = 2, detailed = TRUE)
PlotCurve(fc$adfs[[1]], fc$dfres[1, ], fc$newdats[[1]])

beezdemand documentation built on May 2, 2019, 9:27 a.m.