Description Usage Arguments Author(s) References See Also Examples
View source: R/plot.retention.R
Plot Retention Rates as a line chart. Multiple chart types are available.
1 2 3 |
x |
Object of class |
type |
Character vector. If "all", all chart types are plotted. Valid values are |
percentages |
Use retention counts or percentages? Default is |
omitLast |
Omit last value per series? Useful for Mixpanel data, because last value is usually based on partial data! |
colors |
Colors for lines. Optional. |
durations |
Selected Durations (index). Default is c(1, 2, 5, 10). |
y |
Not used. |
... |
Not used. |
Meinhard Ploner
https://mixpanel.com/help/reference/data-export-api#retention
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
## Fill in here the API token, key and secret as found on
## www.mixpanel.com - Account -> Projects.
account = mixpanelCreateAccount("ProjectName",
token="c12g3...",
secret="168e7e...",
key="543c55...")
ret = mixpanelGetRetention(account, born_event="AppInstall", event="WatchedItem",
from=20150701, to=20151101, unit="week")
par(mfrow=c(2, 2))
plot(ret, type="all")
par(mfrow=c(1, 1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.