powered by
Makes plot title using specified colors for the text
multicolor.title(main, col.main, collapse = "", cex.main = par()$cex.main)
Text to put in main title of plot
Colors to use for the text
What to put between elements of main, defaults to "" but " " might be appropriate
The size of the main title. 1.2 is default.
plot(1:4) multicolor.title(c('Black, ','red, ','green'),c(1,2,3))
Run the code above in your browser using DataLab