R code for temperature and humidity plot