search for: twogrp2

Displaying 1 result from an estimated 1 matches for "twogrp2".

Did you mean: twogrp
2011 Apr 04
2
gap.barplot doesn't support data arrays?
...),xlab="Index",ytics=c(3,6,17,20),ylab="Group values",main="Barplot with gap") But when the data is an array (for a bar plot with multiple series) I get an error and a strange plot with no y-tics and bars stretching downwards, as if all the values were negative: > twogrp2<-array(twogrp, dim=c(2,5)) > gap.barplot(twogrp2,gap=c(8,16),xlab="Index",ytics=c(3,6,17,20),ylab="Group values",main="Barplot with gap") Error in rect(xtics[bigones] - halfwidth, botgap, xtics[bigones] + halfwidth, : cannot mix zero-length and non-zero-leng...