Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] change the type of lines and colours in interaction.plot

Lathouri, Maria

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Dear all,

I want to plot 8 chemical variables in the same plot. I have used the interaction.plot command:

> interaction.plot(speclong$Date,speclong$time2,speclong$outcome,xaxt="n",type="l",pch=20,xlab="", log="y", ylab="Concentration (ug/L)",trace.label="",col=rainbow(8))
However, what it gives me is dotted lines and the colours are very fade. I was wondering if I can change the lines to be solid and as well to specify for each line the colour that I want.

Thanks a lot.

Maria

 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.