[R] barplot
Sundar Dorai-Raj
sundar.dorai-raj at PDF.COM
Mon May 24 22:34:34 CEST 2004
Carlos Guevel wrote:
> I´ve tried version 1.9.0 barplot with these (and others) example from the
> help page:
>
> tN <- table(Ni <- rpois(100, lambda=5))
> r <- barplot(tN, col='gray')
> I get :
>
>
> <<...OLE_Obj...>>
> Same example with version 1.8.1 gives the following result:
>
>
> <<...OLE_Obj...>>
>
> What is wrong with v.1.9.0?
>
> Thanks,
>
> Carlos Guevel
>
This has been reported a while back:
http://r-bugs.biostat.ku.dk/cgi-bin/R/Graphics?id=6777;expression=barplot;user=guest
which also suggests a workaround.
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot(as.vector(tN), col='gray')
Alternatively, barplot2 in the gregmisc package should also work.
library(gregmisc)
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot2(tN, col='gray')
--sundar
More information about the R-help
mailing list