Question: create a pie chart using R (code would be enough), where it just shows the percentage of each Race based on the total count of

create a pie chart using R (code would be enough), where it just shows the percentage of each Race based on the total count of how many people were asked the question (total number of rows in your dataset). You can then try to repeat the process with the Age variable. below is the data set(1st table for reference there are 156 rows in the table but couldnt attach full). Race variable in your datasets is the code of the race category, and it has a corresponding text label (e.g., 1 = American Indian) please refer the below table for this(2nd table)

Age Race
17 3
18 6
18 10
18 5
18 5
18 3
18 3
18 10
18 8
19 10
19 5
19 8
19 3
19 8
19 2
19 10
19 10
19 3
19 4
Race Code
American Indian 1
African American 2
Mexican American 3
Other Hispanic 4
Asian 5
SE Asian 6
Pacific Islander 7
Filipino 8
Multiple Ethnicities 9
White 10
Other/Not Stated 11
International 12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!