On 12 Mar 2012, at 12:47 , S Ellison wrote:
> Yes, to the extent that the default barplot plots the height of the bar so
> far as the sum of teh values so far, starting at teh first. For your first
> vector, no problem; for your second, the highest value is undefiuned, for the
> third, the sum
> -Original Message-
> Am I wrong that barplot is supposed to just skip NAs, and
> continue with the rest of the data in a matrix column? That's
> how I read various posts on the subject.
>
> But that's not what happens for me with R64.app (on a Mac,
> obviously). For example:
>
> d
d2 <- as.matrix(c(2,NA,4))
barplot(d2,beside=T)
barplot(c(d2))
barplot(na.omit(d2))
d2[2,] <- 0
barplot(d2)
# So barplot is not "stopping" at the first NA (first 2 plots). But
what does stacking even mean when you have a missing group in the
middle ? you can't expect barplot to know... if yo
Am I wrong that barplot is supposed to just skip NAs, and continue with the
rest of the data in a matrix column? That's how I read various posts on the
subject.
But that's not what happens for me with R64.app (on a Mac, obviously). For
example:
d0 <- as.matrix(c(2,3,4))
d1 <- as.matrix(c(2,3,N
4 matches
Mail list logo