Hi. Why does the following not graph the data separately by gender? Thank you.
id <- c(1,2,3,4,5,6,7,8,9,10)
gender <- c(0,0,0,0,0,1,1,1,1,1)
ggplot(data = df, aes(x=toys, fill=gender)) +
labs(title = "Distribution of Number of Toys",
y = "Count",
x = "Number of toys",
fill = "Gender")