[R] axis annotation

Andrew C. Ward s195404 at student.uq.edu.au
Fri Feb 28 01:47:03 CET 2003

The following works. No doubt there are other ways to do it.

plot(1:10, 1:10, xaxt="n")
axis(side=1, at=1:10, labels=NA)
text(x=1:10, y=rep(0, 10), col=1:10, 1:10, xpd=NA)


Andrew C. Ward

CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
andreww at cheque.uq.edu.au

Quoting "Wilkinson, Mark" <Mark.Wilkinson at stjude.org>:

> Hi,
> Is there a way to specify a vector of colors for the tick annotation in a
> call to axis(), to achieve the x-axis here?
>  <<Rplot003.png>> 
> Thanks,
> Mark Wilkinson
> Informatics Analyst
> St. Jude Children's Research Hospital
> Department of Pharmaceutical Sciences
> The opinions expressed here are my own and do not necessarily represent
> those of St. Jude Children's Research Hospital.

More information about the R-help mailing list