[R] How to plot Contour with NA in dataframe

2005-04-13 Thread WeiQiang . Li
Dear friends, I am trying to produce Contour Plot with R, but there are some NA in my data matrix. After I ran the following R script, I got the error message:no proper `z' matrix specified. Does anybody know how to plot contour chart with R for the non-strict matrix? Thank

Re: [R] How to plot Contour with NA in dataframe

2005-04-13 Thread Duncan Murdoch
[EMAIL PROTECTED] wrote: Dear friends, I am trying to produce Contour Plot with R, but there are some NA in my data matrix. After I ran the following R script, I got the error message:no proper `z' matrix specified. Does anybody know how to plot contour chart with R for the non-strict

Re: [R] How to plot Contour with NA in dataframe

2005-04-13 Thread Earl F. Glynn
Duncan Murdoch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Your problem isn't the NA values, it's the fact that the contour functions want a matrix, and you're passing a data.frame. If you use as.matrix on it, it converts to character mode, presumably