[R] print numbers

2010-08-16 Thread array chip
Hi, When I plot, the axis ticks are printed as 50.00 25.00 10.00 1.00 0.05 0.01, is there any way to print them as 50 25 10 1 0.05 0.01 instead? Thanks John __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] print numbers

2010-08-16 Thread David Winsemius
On Aug 16, 2010, at 3:53 PM, array chip wrote: Hi, When I plot, the axis ticks are printed as 50.00 25.00 10.00 1.00 0.05 0.01, is there any way to print them as 50 25 10 1 0.05 0.01 instead? No example, so we don't even know which of the three plotting paradigms you might be

Re: [R] print numbers

2010-08-16 Thread array chip
suggestions? Many thanks John - Original Message From: David Winsemius dwinsem...@comcast.net To: array chip arrayprof...@yahoo.com Cc: R-Help r-h...@stat.math.ethz.ch Sent: Mon, August 16, 2010 1:19:57 PM Subject: Re: [R] print numbers On Aug 16, 2010, at 3:53 PM, array chip wrote: Hi

Re: [R] print numbers

2010-08-16 Thread David Winsemius
On Aug 16, 2010, at 4:33 PM, array chip wrote: sorry that I didn't give more details, thought it's going to be the same for all plots. It's the bxp() for boxplot. I have about couple of 10 such plots in a for() loop, so would like to automate the process. Using labels= certainly works,

Re: [R] print numbers

2010-08-16 Thread jim holtman
...@comcast.net To: array chip arrayprof...@yahoo.com Cc: R-Help r-h...@stat.math.ethz.ch Sent: Mon, August 16, 2010 1:19:57 PM Subject: Re: [R] print numbers On Aug 16, 2010, at 3:53 PM, array chip wrote: Hi, When I plot, the axis ticks are printed as 50.00  25.00  10.00 1.00  0.05 0.01

Re: [R] print numbers

2010-08-16 Thread Henrique Dallazuanna
Try this: x - c(50,25,5,1,.1,.05) prettyNum(x) On Mon, Aug 16, 2010 at 4:53 PM, array chip arrayprof...@yahoo.com wrote: Hi, When I plot, the axis ticks are printed as 50.00 25.00 10.00 1.00 0.05 0.01, is there any way to print them as 50 25 10 1 0.05 0.01 instead? Thanks John

Re: [R] print numbers

2010-08-16 Thread Wu Gong
Hi John, formatC will do your work. Hope it helps. x - y - c(50.00,25.00,10.00,1.00,0.05,0.01) plot(x,y,log = xy,axes = F) axis(1, x, formatC(x)) axis(2, y, formatC(y)) Regards, Wu - A R learner. -- View this message in context:

Re: [R] print numbers

2010-08-16 Thread array chip
Message From: Wu Gong w...@mtmail.mtsu.edu To: r-help@r-project.org Sent: Mon, August 16, 2010 2:41:51 PM Subject: Re: [R] print numbers Hi John, formatC will do your work. Hope it helps. x - y - c(50.00,25.00,10.00,1.00,0.05,0.01) plot(x,y,log = xy,axes = F) axis(1, x, formatC(x)) axis(2, y

Re: [R] print numbers

2010-08-16 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of array chip Sent: Monday, August 16, 2010 2:54 PM To: Wu Gong; r-help@r-project.org Subject: Re: [R] print numbers Thank you all for the suggestions. They all worked. Now

Re: [R] print numbers

2010-08-16 Thread Marc Schwartz
-help-boun...@r-project.org] On Behalf Of array chip Sent: Monday, August 16, 2010 2:54 PM To: Wu Gong; r-help@r-project.org Subject: Re: [R] print numbers Thank you all for the suggestions. They all worked. Now, those numbers on the ticks are produced by default plot function bxp(), i.e

Re: [R] print numbers

2010-08-16 Thread array chip
Marc, this works perfectly! Thanks John - Original Message From: Marc Schwartz marc_schwa...@me.com To: William Dunlap wdun...@tibco.com Cc: array chip arrayprof...@yahoo.com; r-help@r-project.org Sent: Mon, August 16, 2010 3:23:33 PM Subject: Re: [R] print numbers Bill et al, See