Re: [R] Help plot

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

From: Achim Zeileis (zeileis@ci.tuwien.ac.at)
Date: Wed 06 Feb 2002 - 23:16:04 EST


Message-id: <3C611E84.E4C78155@ci.tuwien.ac.at>

Olivier Martin wrote:
>
> Hello,
> I would like plot a vector and want to specify the Xticks which will
> be
> displayed. Is it possible ?
> For example, suppose that x is a vector of length 3. I just want the
> Xticks (and the corresponding labels)
> for 1 2 and 3 to be displayed ( and not 1, 1.5, 2,2.5, ....) .

You can do something like
R> plot(1:3, xaxt="n")
R> axis(1, at=1:3)

> Thanks
>
> --
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> Olivier MARTIN
> PhD student phone: (33) 04 76 61 53 55
> Projet IS2 06 08 67 93 42
> INRIA Rhone-Alpes fax : (33) 04 76 61 54 77
> 655, Av. de l'Europe
> Montbonnot e-mail:olivier.martin@inrialpes.fr
> 38334 Saint Ismier cedex
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:56:56 EST