Question
1. For this assignment, subset the states data for the states of TX, CA, FL, and NY. Further subset the data for year=2022. Create X-Y
1. For this assignment, subset the states data for the states of TX, CA, FL, and NY. Further subset the data for year=2022. Create X-Y line plots for the question below. The plots printed by me as I answered each of the questions are shown as guidance on what to exepct.
2. A plot between Dates and 7-Days Moving Avg of cases for State=TX. Print a simply X-Y plot with no additional settings.
3. A plot between Dates and 7-Days Moving Avg of cases for State=CA. Add a title of the plot and also add axes labels. Set the line color to Red.
4. A plot between Dates and 7-Days Moving Avg of cases for State=NY. The plot should not show the line but individual points. Set the line color to Blue. Add Plot title and axes labels.r
5. A plot between Dates and 7-Days Moving Avg of cases for State=FL. Set the line color to violet. Add Plot title and axes labels. Add a smoothened line to show more stable patterns.
Please help with code doing it in RStudio
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started