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, ....) . 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 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020206/04cc79ff/attachment.html
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
see axis() GP> Date: Wed, 06 Feb 2002 12:58:53 +0100 > From: Olivier Martin <olivier.martin at inrialpes.fr> > X-Accept-Language: en > Sender: owner-r-help at stat.math.ethz.ch > Precedence: SfS-bulk > Content-Type: multipart/alternative; > boundary="------------29DFD5BF8EF8E2B33E8A95D2" > Content-Length: 2639 > > > --------------29DFD5BF8EF8E2B33E8A95D2 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > 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, ....) . > > 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._