Hi list,

I just got stuck with this one:

In Data I have the sets age (numbers 1 to 99 and NA) and gender (M, F and
NA). Then getting some nice plots using

ggplot(data, aes(age[na.exclude(gender)])) +
 geom_histogram( binwidth = 3, aes(y = ..density.. ), fill = "lightblue" )
+
  facet_grid( gender ~ .)

I am trying to get a faceted graph of age distribution excluding the NA data
for gender

Unfortunately I end up with the error message:

Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 206, 219

How do i Wash out NA's in this situation?


Regards

ottar

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to