[R] How to add separate labels to the axes of each panel plot?
m_hofert at web.de
Fri May 7 12:59:23 CEST 2010
Dear R experts,
I have four panels plotted with relation="free" and I would like to have labels for both axis for each of the four plots.
How can this be done? Below is a minimal example. There are two problems:
1) How to determine the current panel being plotted inside the panel function.
2) How to choose the location of the label without having to worry about the x- and y-axis units.
## panel function
z=c(1,1,2,2,3,3,4,4) # panel number
par.settings = list(clip=list(panel=FALSE),
layout.widths = list(axis.panel = 2),
layout.heights = list(axis.panel = 2)),
More information about the R-help