[R] print numbers

array chip arrayprofile at yahoo.com
Mon Aug 16 23:54:15 CEST 2010


Thank you all for the suggestions. They all worked. Now, those numbers on the 
ticks are produced by default plot function "bxp()", i.e. they are different in 
each plot, is there any functions I can retrieve them so I can use formatC() or 
prettyNum() etc?

Thanks again,

John



----- Original Message ----
From: Wu Gong <wg2f at mtmail.mtsu.edu>
To: r-help at 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, formatC(y))

Regards,

Wu

-----
A R learner.
-- 
View this message in context: 
http://r.789695.n4.nabble.com/print-numbers-tp2327378p2327525.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list