[R] Change properties of line summary in interaction.plot
David Winsemius
dwinsemius at comcast.net
Wed Sep 7 22:16:33 CEST 2011
On Sep 7, 2011, at 3:46 PM, dadrivr wrote:
> 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?
What "mean summary line"? I count 8 lines and that matches the number
if id's with complete data.
>
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list