Re: [R] axis annotation

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew C. Ward (s195404@student.uq.edu.au)
Date: Fri 28 Feb 2003 - 11:46:31 EST


Message-id: <1046393191.3e5eb167537cb@my.uq.edu.au>

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)

Regards,

Andrew C. Ward

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

Quoting "Wilkinson, Mark" <Mark.Wilkinson@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.
>
>
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:23 EST