title: How can I change the x axis values to names of months of the year in multiple chart using R
body: <p><a href="https://i.stack.imgur.com/WbkX1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WbkX1.png" alt="Output of multiple line chart" /></a></p>
  <p>I want someone to explain how to change the x axis values to months of the year i.e. <strong>Jan2020</strong>, <strong>Feb2020</strong>, ..., <strong>Dec2020</strong>.  Here are my code that generated the chart:</p>
  <pre><code>library(ggplot2)
  library(reshape2)
  dt$Time &lt;- seq(nrow(dt))
  
  dt.df &lt;- melt(dt, measure.vars = c(&quot;Na&quot;, &quot;Mg&quot;, &quot;K&quot;, &quot;Ca&quot;,&quot;Mn&quot;,&quot;Fe&quot;,&quot;Cu&quot;,&quot;Zn&quot;,&quot;Cd&quot;,&quot;Pb&quot;))
  
  ggplot(dt.df, aes(x = Time, y = value)) +
    geom_line(aes(color = variable)) +
    facet_grid(variable ~ ., scales = &quot;free_y&quot;) +
    labs(x = &quot;Month/Year&quot;, y = &quot;Values&quot;)+
    theme(legend.position=&quot;none&quot;)
  </code></pre>