GeoPlot: Plotting function for Exploratory Analysis.

View source: R/plots.R

GeoPlotR Documentation

Plotting function for Exploratory Analysis.

Description

[Stable]

GeoPlot takes a data frame used for GeoLift to generate a plot of each location's time series.

Usage

GeoPlot(
  data,
  Y_id = "Y",
  time_id = "time",
  location_id = "location",
  treatment_start = 0,
  KPI_id = "",
  notes = ""
)

Arguments

data

A data.frame containing the historical conversions by geographic unit. It requires a "locations" column with the geo name, a "Y" column with the outcome data (units), a time column with the indicator of the time period (starting at 1), and covariates.

Y_id

Name of the outcome variable (String).

time_id

Name of the time variable (String).

location_id

Name of the location variable (String).

treatment_start

Treatment start (Default = 0).

KPI_id

Outcome variable.

notes

Additional notes.

Value

A plot of each location's time series.


facebookincubator/GeoLift documentation built on May 31, 2024, 10:09 a.m.