[R] Colors in mtext

From: Christof Bigler <christof.bigler_at_colorado.edu>
Date: Tue 05 Jul 2005 - 03:11:23 EST

I want to assign different colors to different strings using mtext(...). However, when I use something like

mtext(text=c("string1","string2","string3"), col=c("black","blue","red"), side=3, line=0)

string2 and string3 are printed over string1. When I use paste("string1","string2","string3"), the series of strings are printed one over each other, but I still don't get different colors for different strings.

Any solutions?


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 05 03:14:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:12 EST