[R] Help plot

Achim Zeileis zeileis at ci.tuwien.ac.at
Wed Feb 6 13:16:04 CET 2002


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 at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list