Usage
Lift.plot(
GeoLift,
treatment_end_date = NULL,
frequency = "daily",
plot_start_date = NULL,
title = "",
subtitle = "",
notes = "",
post_treatment_periods = 0,
...
)Arguments
- GeoLift
GeoLift object.
- treatment_end_date
Character that represents a date in year-month=day format.
- frequency
Character that represents periodicity of time stamps. Can be either weekly or daily. Defaults to daily.
- plot_start_date
Character that represents initial date of plot in year-month-day format.
- title
String for the title of the plot. Empty by default.
- subtitle
String for the subtitle of the plot. Empty by default.
- notes
String to add notes to the plot. Empty by default.
- post_treatment_periods
Number of post-treatment periods. Zero by default.
- ...
additional arguments
Examples
# \donttest{
geo_test <- GeoDataRead(GeoLift_Test, date_id = "date", location_id = "location",
Y_id = "Y", format = "yyyy-mm-dd")
lift <- GeoLift(Y_id = "Y", data = geo_test, locations = c("chicago", "portland"),
treatment_start_time = 91, treatment_end_time = 105)
Lift.plot(lift, title = "Lift in Chicago and Portland")
#> You can include dates in your chart if you supply the end date of the treatment. Just specify the treatment_end_date parameter.
# }