[R] by/ NA/ barplot

Jonathan Baron baron at cattell.psych.upenn.edu
Wed Jul 4 11:38:48 CEST 2001


It's nice to hear that this problem might be a bug, and
that it can be fixed with ylim.  I've been using the
following function to get around it for barplots of
matrices.  So, for example, if m1 is a matrix, I say
barplot(fill(m1))

fill <- function(x) {x[x=="NA"]<-0 ; return(x)}

Jon Baron
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list