par(mar=c(2,2,5,2))
plyx(Sepal.Width~Sepal.Length, data=iris) ## margins according to ploptions
par("mar") ## paramteres have been recovered
mtext("wrong place for text",3,1, col="red") ## margins not appropriate for active plot
plmarginpar()
par("mar") ## margins used inside the call to plyx . These are now active
mtext("here is the right place",3,1, col="blue")
Run the code above in your browser using DataLab