[R] Change properties of line summary in interaction.plot

dadrivr dadrivr at gmail.com
Wed Sep 7 21:46:23 CEST 2011


Here's an example:
/id <- c(17,17,17,18,18,18,19,19,19,20,20,20,21,21,21,22,22,22,23,23,23,24,
        24,24,25,25,25,26,26,26)
age <- rep(c(30,36,42),10)
outcome <-
c(12,17,10,5,5,2,NA,NA,NA,8,6,5,11,13,10,15,11,15,13,NA,9,0,0,0,20,
             14,16,1,2,2)
mydata <- as.data.frame(cbind(id,age,outcome))
interaction.plot(mydata$age, mydata$id, mydata$outcome, fun = mean, legend =
FALSE, lty = 1, xtick = TRUE, type = "l")/

How can I make the 'mean' summary line red and thicker?

Thanks!

--
View this message in context: http://r.789695.n4.nabble.com/Change-properties-of-line-summary-in-interaction-plot-tp3788614p3797044.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list