Skip to content

multiple x-axis labels on plot

2 messages · t.d. kaplan, Uwe Ligges

#
hi,

how can i set multiple x-axis labels on a plot? in effect, i want
to set 2 x-axis labels and values on the tick marks. is it possible
to have one running on the bottom (as is the default) and another
running across the top of a plot?

like:

xlab-1
---------
|       |
|       |
---------
xlab-0


thanks.
#
t.d. kaplan wrote:
Yes, for plotting axes separately, see ?axis.
For plotting annotation along the margins of the plot, see ?mtext.

Uwe Ligges