1. Learn
  2. /
  3. Courses
  4. /
  5. Data Science Visualization - Module 2

Exercise

Exercise 7. geom_point text

If instead of points we want to add text, we can use the geom_text() or geom_label() geometries. However, note that the following code

murders %>% ggplot(aes(population, total)) +
  geom_label()

will give us the error message: Error: geom_label requires the following missing aesthetics: label

Why is this?

Instructions

50 XP

Possible answers