title: Using scale_x_continuous in ggplot with x and y axis labels
body: <p>I have a ggplot with the x and y axis limited with scale_x_continuous. However, I also want to add x and y axis labels. This brings up this message:</p>
  <p>Scale for 'x' is already present. Adding another scale for 'x', which will replace the existing scale.</p>
  <p>I have also tried ylab = and xlab = in the + labs 'section' but it also produced the same error. Any assistance would be greatly appreciated. This is my script:</p>
  <pre><code>MigrPlt = ggplot(Migr,aes(Distance3, `newBa`))+
  geom_line()+
  scale_x_continuous(n.breaks = 10)+ 
  xlim(0, 3800)+ 
  ylim(0,25) + 
  labs(y= expression (paste('Ba:Ca (µmol mol'^~-1,')')), x = &quot;Distance from Core (μm)&quot;) + 
  geom_hline(yintercept=2.25, linetype=&quot;dashed&quot;, color = &quot;red&quot;)+ 
  geom_vline(xintercept = 1193.9, linetype=&quot;dashed&quot;, color = &quot;grey&quot;)+ 
  geom_vline(xintercept = 1965.5, linetype=&quot;dashed&quot;, color = &quot;grey&quot;) + 
  geom_vline(xintercept = 2616.9, linetype=&quot;dashed&quot;, color = &quot;grey&quot;) + 
  geom_vline(xintercept = 3202.8, linetype=&quot;dashed&quot;, color = &quot;grey&quot;)+ 
  geom_vline(xintercept = 3698.9, linetype=&quot;dashed&quot;, color = &quot;grey&quot;)
  
  </code></pre>