title: R - how do I change font style and size on my two x-axes which I have moved to the top of the graph?
body: <p>I am having bother changing the font style and size on my two x-axes, both of which I have moved to the top of the graph.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>x1&lt;-Temperature
  x2&lt;-Salinity
  
  y&lt;-Depth
  par(mar=c(4, 4, 8, 4))
  
  plot(x2,y, type="l",col="darkgrey",ylim=rev(range(0,300)),las=2,xlim=(range(32.5,34.5)),xaxt='n',xlab='',font.axis=2,lwd=3,ylab="Depth [m]",font=2,font.lab=2,cex.lab=1.3,cex.axis=1.2)
  axis(side=3, line=4)
  par(new=TRUE)
  plot(x1,y, type="l",col="black",ylim=rev(range(0,300)),las=2,xaxt='n',xlab='',lwd=3,ylab='Depth [m]',font=2,font.lab=2,cex.lab=1.3,cex.axis=1.2)
  axis(side=3, line=0)
  par(new=TRUE)
  </code></pre>
  
  <p>This successfully changes my y-axis but leaves my x-axes unchanged.</p>
  
  <p>Help!  </p>