(15 points)
We'll work on this in class together on Monday, June 12 and Thursday, June 15.
I've set up a little random data generator for you to download some data into R that you can play with. Everyone gets their very own personalized, randomly generated data. Since everyone's got their own, we can all share our results here on Discourse. You can access your data in R via the following command:
my_data <- read.csv('https://www.marksmath.org/cgi-bin/random_data.csv?id=YOUR_STUDENT_ID#')
Of course, your student ID number should be your UNCA student ID number. Mine is 987654321 so I can get my data and display the first few rows via the following command:
my_data <- read.csv('https://www.marksmath.org/cgi-bin/random_data.csv?id=987654321')
head(my_data)
## Out:
# first_name last_name age sex height weight income
# 1 Carol Massey 46 female 61.96 134.04 108727
# 2 Diana Wright 35 female 66.42 188.55 1154
# 3 David Hamilton 25 male 69.69 173.91 3676
# 4 Sherry Eichelberger 39 female 61.08 121.00 15471
# 5 Nicole Mcclarty 22 female 58.75 136.74 4
# 6 Billy Flores 32 male 69.48 106.11 7533
Here's your assignment: Post a reply to this topic with the following:
- The first few lines of your data after import, just as I did above.
(Without your student ID) - A bar chart for the sexes of the people
- A box and whisker plot for the weights of the people.
- A summary of the ages in your data (via the
summary
command) - A histogram for the heights of the men.
- A normal probability plot for the heights of the men
- A histogram for the incomes
- A normal probability plot for the incomes
Note: For each problem, I'd like to see both the code and the output.
Also: Be sure to use a place holder, like MYID
for your student ID, rather than the real thing.