Dear All,
Consider the following trivial code snippet
rm(list=ls())
name_vec <- c("color1", "color2")
pdf("test_color.pdf")
plot(seq(5), seq(5), main=paste(name_vec[1]," and ",name_vec[2], sep=""))
dev.off()
What I would like to achieve is rather simple to explain, but it is
giving me a headache: how can I have two colors in main? Let us say that
I would like 'color1' to be blue and 'color2' to be black.
Many thanks
Lorenzo
______________________________________________
R-help@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.