Skip to content
Back to formatted view

Raw Message

Message-ID: <36604712.1021487561@fsw20223.socsci.kun.nl>
Date: 2002-05-15T16:32:41Z
From: Paul Lemmens
Subject: graphics question
In-Reply-To: <Pine.A41.4.44.0205150858350.99196-100000@homer21.u.washington.edu>

--On woensdag 15 mei 2002 8:59 -0700 Thomas Lumley 
<tlumley at u.washington.edu> wrote:

> On Wed, 15 May 2002, Paul Lemmens wrote:
>
>> The graph I'm looking for has on the y-axis the RT values (in ms), so
>> this should range from 350 - 450. On the x-axis I want two ticks for
>> each level (sc and oc) of the 'cat' factor. In the plot, three lines
>> should be displayed, for each level of the factor 'loc', pref. including
>> a legend.
>>
>> How do I do this???
>
> Does example(interaction.plot) look like the sort of thing you want?
>
Yes!! This goes a great ways into what I want. However, if I do:

data <- c(390,416,406,396,421,415)
psc <- gl(2,3, labels=c("samecat","othercat"))
loc <- gl(3,2, labels=c("corresp", "noncorresp", "noninf"))
interaction.plot(psc, loc, data)

I get only one line (for noncorresp) which looks as if it is the average of 
all data points (2 times the average of 3 points). This makes sense because 
of the fun argument of interaction.plot (which, to me, seems to default to 
mean). Can I override this with some function that just returns one point 
of data??

thnx for the quick response!
Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._