[R] Matrix barplot

Andreas Tille tillea at rki.de
Fri Jul 25 19:04:16 CEST 2008


On Fri, 25 Jul 2008, Jim Lemon wrote:

> library(plotrix)

Well, if I try this in the example of the previous poster I get
nicely rendered fonts - which is the only difference I noticed.

> # barp groups data in columns, not rows, so transpose
> barp(t(atdat[,2:4]),names.arg=atdat[,1],col=2:4)

While I could set matrices and vectors the same way as previousely
suggested I would like to understand, why this leads to

   'height' must be a vector or a matrix

again.  But that's purely accademical.

Kind regards

      Andreas.

-- 
http://fam-tille.de



More information about the R-help mailing list