Marc, this works perfectly!
Thanks
John
- Original Message
From: Marc Schwartz
To: William Dunlap
Cc: array chip ; r-help@r-project.org
Sent: Mon, August 16, 2010 3:23:33 PM
Subject: Re: [R] print numbers
Bill et al,
See ?axTicks
plot(3^(0:5), 0:5, log="x",
m: 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 work
> -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 sugg
- Original Message
From: Wu Gong
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, format
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:
http://r.789695.n4.nabble.com/print-numbers-tp2327378p
Try this:
x <- c(50,25,5,1,.1,.05)
prettyNum(x)
On Mon, Aug 16, 2010 at 4: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?
>
> Thanks
>
> John
>
> _
but it's manual work - plot by plot. Any other suggestions?
>
> Many thanks
>
> John
>
>
>
> - Original Message
> From: David Winsemius
> To: array chip
> Cc: R-Help
> Sent: Mon, August 16, 2010 1:19:57 PM
> Subject: Re: [R] print numbers
>
>
&
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,
work - plot by plot. Any other suggestions?
Many thanks
John
- Original Message
From: David Winsemius
To: array chip
Cc: R-Help
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
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
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-hel
11 matches
Mail list logo