PlotCurve | R Documentation |
Creates a single plot object
PlotCurve(adf, dfrow, newdats, yscale = "log")
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" |
Creates individual demand curves
ggplot2 graphical object
Shawn Gilroy <shawn.gilroy@temple.edu>
## 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]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.