Question: 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. 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 :
on xaxis. Provide all labels and put limits on axis. g Use parnewTRUE 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 : Station MERRA & factor temperature and Station NARR & factor
temperature
ii Plot : Station MERRA & factor sunshine and Station NARR & factor
sunshine
Your plots should look like above plots.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
