PlotCurve {beezdemand}R Documentation

Plot Curve

Description

Creates a single plot object

Usage

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

## 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]])


[Package beezdemand version 0.1.2 Index]