Question

R Programming Language

This question uses the lattice package. Show the code you used to generate the graphs. Use the state.region and state.x77 data set (recall typing ?state.x77 into the console will provide a discription of this data set).

Question 1a

Investigate the population density of USA states within the four regions: Northeast, South, North Central and West. Observe the graph of State Population as a Function of Area. Create Figure 1.

Question 1b

There is one state in the west which has a relatively dense population (Area is relatively small compared to the number of people). Which state is that?

State Population as a Function of Area 0 5000 15000 0 5000 15000 North Centra Northeast South West 5e+05 4e+05 cr 3e+05 2e+05 e+05 0e+00 0 5000 15000 0 5000 15000 Population Figure 1: State Population

Question 1c

Use the cloud() function from the lattice package to create the 3D plot of States (Figure 2). Can you make this plot look more informative or interesting

Question 1d

For this question the HS Grad column has been divided into three groups. For the first group, the HS Grad percentage is less than 50. In the second group the HS Grad percentage is bewteen 50 and 57, while the HS Grad percentage for the third group is greater than 57. Use the lattice coplot() function to create Figure 3 .

Question 1e

Also create another illustration of your choice using this data and the lattice package.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
R Programming Language This question uses the lattice package. Show the code you used to generate...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • All of the following questions are in relation to the following journal article which is available...

    All of the following questions are in relation to the following journal article which is available on Moodle: Parr CL, Magnus MC, Karlstad O, Holvik K, Lund-Blix NA, Jaugen M, et al. Vitamin A and D intake in pregnancy, infant supplementation and asthma development: the Norwegian Mother and Child Cohort. Am J Clin Nutr 2018:107:789-798 QUESTIONS: 1. State one hypothesis the author's proposed in the manuscript. 2. There is previous research that shows that adequate Vitamin A intake is required...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT