Skip to content
Prev 304177 / 398513 Next

Aligning barplot

On Aug 26, 2012, at 1:52 PM, darnold wrote:

            
Yeah. There is something pathological that happens when you do this:

tblA <- table(BagA)
tblA[8] <- 0


 > tmp <-c(tmp,0)
 > is.vector(tmp)
[1] TRUE

But if you instead use tmp[8] <- 0 then
 > is.vector(tmp)
[1] FALSE

I haven't quite figured out exactly what it is, but when it fails the  
is.vector test inside barplot you get an error.
David Winsemius, MD
Alameda, CA, USA