s-news
[Top] [All Lists]

splom with trellis plot from MASS

To: s-news@wubios.wustl.edu
Subject: splom with trellis plot from MASS
From: Jason Connor <jconnor@bio.ri.ccf.org>
Date: Thu, 22 Mar 2001 11:48:12 -0500 (EST)
I am passing along a problem co-worker is having. Thank you for
considering it.

Jason

---

The data set, 6 continuous variables, is shown below.

I have mimicked the code from MASS page 79.  

splom(~tmp1,aspect="fill",
panel=function(x,y, ...)  
{panel.xyplot(x,y,...) ;
panel.loess(x,y,...)
},main="MS CSF CD3, CD14")


Because the data has NA's, however, I keep getting the error shown here:

Problem in .C("loess_raw",: subroutine loess_raw: Missing values in argument 1 
Use traceback() to see the call stack

I have tried including na.action=na.exclude to the panel.loess function
and through the panel= function to the panel.loess function but no avail.

Any suggestions are appreciated.






> > > tmp1
   CSFPR1.3 CSFPR5.3 CSFPXR33 CSFPR114 CSFPR514 CPXR3.14 
 1      5.8       NA     84.6     96.3     85.9     14.4
 2     50.7      9.8       NA     87.5     96.4     19.3
 3      1.2     48.5     90.1     98.4     94.5     60.0
 4      5.5     27.7     85.7       NA     85.9     28.4
 5      1.0     45.9     80.8     93.2     92.8     28.7
 6      5.1       NA     92.9     96.6     88.4     11.7
 7     13.6     36.6     89.8       NA       NA       NA
 8      2.9       NA     89.1     53.8     43.1      9.6
 9      7.7       NA     87.5    100.0    100.0     24.6
10      9.6       NA     94.0       NA       NA       NA
11      0.6     12.6     83.8     73.4     68.2      2.2
12       NA     11.8     80.0     33.5     19.0      3.1
13      3.9       NA     94.1     94.9     65.8      8.4
14      3.5       NA     89.5     98.0     79.8     12.6
15     31.1     44.0     87.7     95.1     80.2     45.7
16      5.9     25.1     95.3       NA       NA       NA
17     13.2       NA     88.8     99.8       NA       NA
18      5.7       NA     89.2       NA       NA       NA
19      0.9      3.7     87.9       NA     53.8     33.6
20     14.5     30.4     93.0     99.4     85.5     45.8
21      2.8       NA     87.1       NA       NA     26.0
22      3.2     16.3     88.6     96.5     94.5     28.9
23      7.9     62.9     91.6     97.0     96.3     14.4
24      0.3      5.4     89.4       NA       NA       NA
25      1.1     36.5     75.8     87.3     85.6     20.5
26       NA     28.2     91.8       NA       NA       NA
27      0.3     16.7     92.1       NA       NA       NA
28      2.7      5.5     83.0     75.8     19.6      1.1
29      2.2     31.0     89.6     96.6     58.3     26.7
30      0.9      0.9     84.1       NA     15.5      3.0
31      1.2     38.0     96.6     62.0     58.8     52.0
32     10.7     74.3     83.3     65.8     75.1     65.8
> 



<Prev in Thread] Current Thread [Next in Thread>
  • splom with trellis plot from MASS, Jason Connor <=