[R] Colors in mtext

Christof Bigler christof.bigler at colorado.edu
Mon Jul 4 19:11:23 CEST 2005


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?

Christof




More information about the R-help mailing list