<- read_csv("https://bcdanl.github.io/data/starwars.csv") starwars
Let’s analyze the starwars
data:
::paged_table(starwars) rmarkdown
Variable Description for starwars
data.frame
The following describes the variables in the starwars
data.frame.
films
List of films the character appeared inname
Name of the characterspecies
Name of speciesheight
Height (cm)mass
Weight (kg)hair_color
,skin_color
,eye_color
Hair, skin, and eye colorsbirth_year
Year born (BBY = Before Battle of Yavin)sex
The biological sex of the character, namely male, female, hermaphroditic, or none (as in the case for Droids).gender
The gender role or gender identity of the character as determined by their personality or the way they were programmed (as in the case for Droids).homeworld
Name of homeworld
Human vs. Droid
ggplot(data =
%>%
starwars filter(species %in% c("Human", "Droid"))) +
geom_boxplot(aes(x = species, y = mass,
fill = species),
show.legend = FALSE)