On 02/25/2010 05:06 AM, Lu Wang wrote:
...
The
problem is the na.exclude function does not work here. Is it the reason
that my missing values are not 'NA's but blank? How can I get the pie
chart without those missing values?


Hi Lu,
Your problem is most easily solved when reading in the data.

# this reads the blank fields as <NA>
level<-read.table("lu_wang.dat",header=TRUE,fill=TRUE,na.strings="")
pie(table(level$level))

Jim

______________________________________________
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