plot.accrual_df {accrualPlot} | R Documentation |
Plot method for accrual data frames produced by accrual_create_df
Description
Plot method for accrual data frames produced by accrual_create_df
Usage
## S3 method for class 'accrual_df'
plot(x, which = "cum", engine = c("base", "ggplot2"), ...)
Arguments
x |
object of class 'accrual_df' or 'accrual_list' produced by accrual_create_df. |
which |
one of |
engine |
string to indicate the plotting engine (base/graphics or ggplot2) |
... |
options passed to other functions |
Value
A plot with cumulative or absolute accrual, or accrual prediction.
See Also
accrual_plot_abs()
, accrual_plot_cum()
and accrual_plot_predict()
Examples
data(accrualdemo)
accrual_df <- accrual_create_df(accrualdemo$date)
plot(accrual_df)
plot(accrual_df, "abs", unit="week")
plot(accrual_df, "pred", target = 300)
plot(accrual_df, "pred", target = 300, engine = "ggplot")
[Package accrualPlot version 1.0.7 Index]