In the R plotting environment, is there a way to specify a universal distance between the placement of the axis label and axis name relative the the boundary of the plot? For example, consider the Y-axis of the following test plot:
pdf('test1.pdf',height=3.5,width=5.0)
plot(1,ylab=NA,yaxt='n',ann=F)
mtext('Y-Axis Label',side=2,line=1.5)
axis(2, pos=0.595,tick=F)
dev.off()
I have optimized the placement of the axis label and axis name using the line=1.5 and pos=0.595 parameters within the mtext and axis functions, respectively. However, once I generate a separate plot with a different width (i.e. width=8.0), the placement no longer resembles the physical distance that I specified in the original graph using a width of 5.0. So the questions is - how do I specify these parameters so that the label and name will be exactly the same distance from the graph boundary regardless of the plot width. Could this be specified using a universal unit (i.e. pixels)?
Thanks in advance!