[R] Double Colors in Main
Romain Francois
romain at r-enthusiasts.com
Tue Mar 2 14:28:14 CET 2010
See this thread :
http://finzi.psych.upenn.edu/Rhelp10/2009-January/185693.html
On 03/02/2010 02:18 PM, Lorenzo Isella wrote:
>
> 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
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5
More information about the R-help
mailing list