Enter the following table into R. The table gives the number of majors for each of the five departments in college.
size (291, 55, 34, 41, 124)
departments ("Math", "Biology", "Geology", "Physics", "Computer Science")
i. Make a pie chart of the 5 majors.
ii. Make a bar chart showing the percentage of majors in each department.
And here is the R code for the above,
Please let me know if there is any difficulty in understanding the code or there is any error.
Get Answers For Free
Most questions answered within 1 hours.