if (FALSE) {
mgp.axis.labels(type='x') # get default value for x-axis
mgp.axis.labels(type='y') # get value for y-axis
mgp.axis.labels(type='xy') # get 2nd element of both mgps
mgp.axis.labels(type='x and y') # get a list with 2 elements
mgp.axis.labels(c(3,.5,0), type='x') # set
options('mgp.axis.labels') # retrieve
plot(..., axes=FALSE)
mgp.axis(1, "X Label")
mgp.axis(2, "Y Label")
}
Run the code above in your browser using DataLab