[R] Does barplot handle log scales?

Marc Schwartz mschwartz at medanalytics.com
Wed Mar 5 19:48:35 CET 2003


>-----Original Message-----
>From: r-help-bounces at stat.math.ethz.ch 
>[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Tommy E.
Cathey
>Sent: Wednesday, March 05, 2003 12:40 PM
>To: R-help at stat.math.ethz.ch
>Subject: [R] Does barplot handle log scales?
>
>
>Does barplot handle log scales? Every time I try to pass 
>log="y" to barplot I get the following error message.
>
>>barplot(height=t(array(c(d1,d2,d3,d4),dim=c(NROW(d1),4))),ann=
>FALSE,axe
>>s=FALSE,col=c("#0000ff","#ff0000","#00ff00","#ffff00"),horiz=F
>ALSE,widt
>>h=c(0.5),space=c(1.2,2.0),beside=FALSE,log="y")
>
>Error in plot.window(xlim, ylim, log = "", ...) :
>        formal argument "log" matched by multiple actual arguments
>
>Thanks,
>Tommy
>
>--
>
>Tommy E. Cathey
>Senior Scientific Application Consultant
>SAIC (Contractor to EPA)
>mailto:cathey.tommy at epa.gov
>(919)541-1500
>My e-mail does not reflect the opinion of SAIC or the EPA.


Tommy,

The standard barplot() function does not handle log scales.

Please see barplot2() in the gregmisc package on CRAN.  If you have
any questions on its use, please let me know.

Best regards,

Marc Schwartz



More information about the R-help mailing list