Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve in R Studio. ( 7 pts ) Plot the time series of average monthly temperature and sunshine with months ( directly plot the

Please solve in R Studio. (7 pts) Plot the time series of average monthly temperature and sunshine with months (directly
plot the values given in the Average column with months). Plot separate legends for MERRA and
NARR on the same plot. Provide axis labels, titles, and legends. Comment on the seasonal
variation of these climatic factors.
Hints: Please do not copy paste from here to create an index. These steps are for your references
only. You can consult the video lectures to learn about the syntax.
a. Clear your console and environment.
b. Set up working directory and read your file.
c. Create an index for where Station = MERRA & factor = temperature.
d. Repeat same steps for other three requirements.
i., Station = MERRA & factor = sunshine.
ii. Station = NARR & factor = temperature.
iii. , Station = NARR & factor = sunshine.
e. Using these indices extract the data from column named as "Monthly Average".
f. Plot the extracted columns with months. For simplicity you can plot the months as x=1:24
on x-axis. Provide all labels and put limits on axis. g. Use par(new=TRUE) and create plot for NARR over the previous plot. Remember to put
your axis and labels as blank. xlab="", ylab="". Put the same limits for y axis in both plots.
Put legend
h. In total you need to create two plot as:
i., Plot 1: Station = MERRA & factor = temperature and Station = NARR & factor =
temperature
ii., Plot 2: Station = MERRA & factor = sunshine and Station = NARR & factor =
sunshine
Your plots should look like above plots.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions