Hi after browsing the documentation and web, I'm completely lost as how to create the graph I describe below (as best as I can). I've got 3 pairs of average response times: (390,396), (416, 421), (406,415). Each of these pairs represents a level of a certain factor (let's call it 'loc'), namely (in the same order), levels "c", "nc" and "ni". Within a pair, the first value belongs to the level "sc" of the factor 'cat'; the second value belongs to the level "oc". 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??? Please send a CC to my address (p.lemmens at nici.kun.nl), as I'm not yet subscribed to the list. thank you for your help! 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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? -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 05/15/02 17:30, Paul Lemmens wrote:>Hi > >after browsing the documentation and web, I'm completely lost as how to >create the graph I describe below (as best as I can). > >I've got 3 pairs of average response times: (390,396), (416, 421), >(406,415). Each of these pairs represents a level of a certain factor >(let's call it 'loc'), namely (in the same order), levels "c", "nc" and >"ni". Within a pair, the first value belongs to the level "sc" of the >factor 'cat'; the second value belongs to the level "oc". > >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.I'm not going to solve the whole thing, but I think what you want is matplot(m1,typ="l"), where m1 is a matrix made from your data above. (I think it would go like 390 396 416 421 406 415 but I might have it transposed. I always ending up trying t(m1) because I never remember which way it goes so I guess rather than reading the help page.) You might be able to get proper labels by using colnames(x) and rownames(x). After the plot, you can use legend() to add a legend. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I'm learning R and having some trouble clearing a screen. I'm using Version 1.5.0 and have encountered the same problem under Linux (RH7.2) and Windows (2K). For example:> split.screen(c(2,2)) > plot(1:10) > screen(2) > plot(10:1) > erase.screen(1) > screen(1) > plot(10:1)What should I be expecting to happen? At the moment, it overlays the plots on screen 1. I've run through the example in the documentation under screen and it also seems to overlay plots. I've also tried setting new=TRUE when setting the screen, but that hasn't helped. What I would like to do (and was expecting) was that a new plot would clear that particular screen (e.g. screen 1 in the example above) instead of overlaying it. Most of the other things that I've tried have worked nicely. Any help would be appreciated. Perhaps there is a better text/reference for this specific question? Sincerely, Peter -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Maybe Matching Threads
- Numbers that look equal, should be equal, but if() doesn't see as equal (repost with code included)
- is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
- Accessing columns in data.frame using formula
- library(car) Anova() and Error-term in aov()
- Cbind warning message