accrual_create_df
R/methods.R
plot.accrual_df.Rd
Plot method for accrual data frames produced by accrual_create_df
object of class 'accrual_df' or 'accrual_list' produced by accrual_create_df.
one of "cumulative"
, "absolute"
or "predict"
.
Abbreviations are allowed.
string to indicate the plotting engine (base/graphics or ggplot2)
options passed to other functions
A plot with cumulative or absolute accrual, or accrual prediction.
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")
#> Warning: All aesthetics have length 1, but the data has 79 rows.
#> ℹ Please consider using `annotate()` or provide this layer with data containing
#> a single row.