title: Plot time series data in r for one year month wise
body: <p>Need a help plotting in r for time series data.The Y is temperature and X is date(now in format %d-%m-%y) and need a plot like:</p>
  
  <p><a href="https://i.stack.imgur.com/Mdjtk.png" rel="nofollow noreferrer">temp data in month wise along with a box plot</a></p>
  
  <p>I have tried:</p>
  
  <h1>univariare-temperature</h1>
  
  <pre><code>temperature = ts(r$temp, frequency = 12, start = 2011) plot(temperature, xaxt = "n") tsp = attributes(temperature)$tsp dates
  = seq(as.Date("2011-01-01"), by = "month", along = temperature) axis(1, at = seq(tsp[1], tsp[2], along = temperature), labels = format(dates, "%m-%y"))
  </code></pre>
  
  <h1>ggplot</h1>
  
  <pre><code>gg2=ggplot(r,aes(mnth,temp)) + geom_line() 
  windows() 
  print(gg2)
  </code></pre>
  
  <p>but the format is coming incorrect.</p>
  
  <p>Any help will be really appreciable!!</p>
  
  <p>Thanks 
  Devi</p>