Plot two variables with different units in a same plot


I have a dataframe with variables presented in different units (ug/m3 for gases, ºC for temperature and more meteorological variables such as wind speed or wind direction).
I would like to get a plot with the annual evolution of a gas and T, for instance: in one side of the Y-axis the units for the gas, on the other side, the units for temperature.

Is it possible?

Thanks in advance!!

Yes, here is an example

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.