1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to A/B Testing in R

Exercise

Confounding variable example plotting

Let's see if we can tell when 'like' rates really started to change by plotting daily like rates.

The data frame summarized by day is viz_website_2018_02_sum. All packages have already been loaded for you.

Instructions

100 XP
  • Fill in the missing two geom_*()s we've used in previous exercises.
  • Set color to condition.
  • Set linetype to article_published.
  • Find the date when the article was first published. Now add that date as the value for xintercept in geom_vline(). (Note: it should be of the format "YYYY-MM-DD".)