The axis labels for plots in R default to the center of their respective axis. I would like to move the axis labels to the ends of the axes so that the horizontal "x" label is at the far right and the vertical "y" label is at the far top. What are some recommended ways to do this? Can one use mtext in a clever way?
Using mtext and playing with adj parameter:
plot(0,ann=FALSE)
mtext('right',side=1,line=2,adj=1,col='red',cex=2)
mtext('top',side=2,line=2,adj=1,col='blue',cex=2)

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With