Skip to content
Back to formatted view

Raw Message

Message-ID: <457E61A2.4080600@statistik.uni-dortmund.de>
Date: 2006-12-12T08:00:34Z
From: Uwe Ligges
Subject: multiple x-axis labels on plot
In-Reply-To: <f6aa47200612112326g3804e1efwe7f9cf7227cef03d@mail.gmail.com>

t.d. kaplan wrote:
> 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?


Yes, for plotting axes separately, see ?axis.
For plotting annotation along the margins of the plot, see ?mtext.

Uwe Ligges

> like:
> 
> xlab-1
> ---------
> |       |
> |       |
> ---------
> xlab-0
> 
> 
> thanks.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.