s-news
[Top] [All Lists]

Re: plotting a grouped data object

To: S News <s-news@wubios.wustl.edu>
Subject: Re: plotting a grouped data object
From: Anne York <york@noaa.gov>
Date: Fri, 20 Apr 2001 14:11:14 -0700 (PDT)
In-reply-to: <Pine.GSO.4.05.10104200816200.12798-100000@ofis450a.akctr.noaa.gov>
Reply-to: Anne York <anne.york@noaa.gov>
Here is a solution courtesy of of David Smith:


 plot(dum,strip=function(...){strip.default(...,style=5)})

Note that both sets of triple dots are necessary. 

Anne


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anne E. York
National Marine Mammal Laboratory
Seattle WA 98115-0070  USA
e-mail: anne.york@noaa.gov
Voice: +1 206-526-4039
Fax: +1 206-526-6615
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Fri, 20 Apr 2001, Anne York wrote:

>dum is a grouped data object:
>
>>dum_groupedData(g.c~glg.num|new.id,outer=~mean.age,data=dentine)
>>class(dum)
>[1] "nfnGroupedData"  "nfGroupedData"    "groupedData"     "data.frame"
>
>When I execute the the command plot(dum), I get a beautiful plot of g.c vs
>glg.num for each subject. Just what I want. But when I try to change the
>strip, I get the following:
>
>>plot(dum,strip=strip.default(...,style=5))
>Error: "..." used in a context where it doesn't exist: strip.default(...,
>style = 5)
>
>But issuing the strip.default command without the defaults results in
>another  error: 
>
>>plot(dum,strip=strip.default(style=5))
>Error in strip.default: Argument "which.panel" is missing, with no default:
>
>Any ideas what I'm doing wrong?
>
>Anne
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Anne E. York
>National Marine Mammal Laboratory
>Seattle WA 98115-0070  USA
>e-mail: anne.york@noaa.gov
>Voice: +1 206-526-4039
>Fax: +1 206-526-6615
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


<Prev in Thread] Current Thread [Next in Thread>