podlove_plot_performance: Plot Performance Diagram from Download Data

Description Usage Arguments Value See Also Examples

View source: R/podlove_plot_performance.R

Description

Wrapper function to prepare and generate a performance plot with all episodes on an X/Y grid, X showing long-term average downloads, Y showing average downloads during launch. Horizontal and vertcal lines show median values. This allows for categorization of epsisodes into performance clusters. Note that you won't see episodes which are younger than your post_launch limit. If you want to generate and tweak the data behind this plot, use podlove_performance_stats.

Usage

1
2
3
4
5
6
7
8
9
podlove_plot_performance(
  dldata,
  launch = 3,
  post_launch = 7,
  limit_unit = "days",
  label,
  legend,
  printout = TRUE
)

Arguments

dldata

A tidy data frame with download data, as constructed by podlove_clean_stats() or podlove_get_and_clean.

launch

definition of a episode launch period in days after launch

post_launch

definition of begin of long-term performance in days after launch

limit_unit

time unit for limits. Can be "days" (default) or "hours". Used to fine-tune launch performance cutoffs.

label

Unquoted, episode-related variable to use for labelling. By default, podlove_performance_stats creates the options title, ep_number and ep_num_title. Leave the argument away to display no label

legend

Unquoted, episode-related variable to use in a explanatory legend next to the performance graph. Leave the option away to display no legend. label argument must be defined to show the legend.

printout

Switcher to automatically print out the plot (default TRUE)

Value

A ggplot object

See Also

podlove_performance_stats(), podlove_graph_performance()

Examples

1
2
3
4
# create example data
dls <- podlove_create_example(clean = TRUE)

podlove_plot_performance(dls, launch = 2, post_launch = 5)	

lordyo/podlover documentation built on Feb. 20, 2020, 5:58 p.m.