Temperature and rainfall graph

Hi all,

I would like to build a nice graph for my weather data. I have 13-months daily records for:

  • minimum temperature
  • mean temperature
  • maximum temperature
  • rainfall.

I would like to have a graph similar to this one (see below) where there are 3 lines for each temperature category and a monthly sum of rainfall. Ideally, on the x-axis I would like the month the be written in letters.

I am quite lost on how to do that on R e.g. which package allows me to do that/ with which syntax/ do I need to format my data for that etc.

Thanks in advance for your help :slight_smile:

You can do it easily with ggplot2 package, you can learn how by reading this chapter from R4DS

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.