Complete the DataCamp course Data Visualization with ggplot2 (Part 1). You may benefit from completing all five chapters in the course.
The characters in the 1977 interstellar space movie A New Hope come from different planets. We are interested in comparing their physical dimensions.
The following code will generate a data frame of information about these characters.
library(tidyverse)
a_new_hope <- starwars %>%
filter(
mass < 1000,
grepl("A New Hope", films)
)
Use ggplot2 and the data frame a_new_hope to make the following plot:
You may find it helpful to consult the documentation for the labs() function from ggplot2.
There are 10 possible points on this assignment.
.Rmd that compiles without errors