Question: The r codes and output. Thank you a. Create a data frame and show a plot of enrollment based on class and race using ggplot
The r codes and output. Thank you
a. Create a data frame and show a plot of enrollment based on class and race using ggplot
b.Generate a plot showing average enrollments by race. Do the same for class using ggplot.
| Race | Enrollment | Class |
| Black | 26 | Senior |
| Hispanic | 20 | Senior |
| White | 42 | Senior |
| Asian | 15 | Senior |
| Others | 9 | Senior |
| Black | 19 | Junior |
| Hispanic | 15 | Junior |
| White | 40 | Junior |
| Asian | 21 | Junior |
| Others | 10 | Junior |
| Black | 15 | Sophomore |
| Hispanic | 20 | Sophomore |
| White | 41 | Sophomore |
| Asian | 20 | Sophomore |
| Others | 8 | Sophomore |
| Black | 10 | Freshman |
| Hispanic | 17 | Freshman |
| White | 35 | Freshman |
| Asian | 18 | Freshman |
| Others | 5 | Freshman |
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
