Re: [R] conditional coloring of output text in console or in GUI

2009-07-01 Thread Romain Francois
Hi, You might want to check package xterm256. http://cran.r-project.org/web/packages/xterm256/index.html http://romainfrancois.blog.free.fr/index.php?post/2009/04/18/Colorful-terminal%3A-the-R-package-%22xterm256%22 This works if the terminal you are using recognizes xterm escape sequences as d

Re: [R] conditional coloring of output text in console or in GUI

2009-07-01 Thread Jim Lemon
Christopher W. Ryan wrote: suppose I have some logical vector x <- as.logical(c(0,0,0,1,0,0,1,1,0)) x How would I make the words TRUE appear on the screen in a different color from the words FALSE? tfsample<-as.logical(sample(c(0:1),10,TRUE)) plot(1:10,type="n") text(1:10,1:10,tfsample,col

Re: [R] conditional coloring of output text in console or in GUI

2009-07-01 Thread Paolo
Christopher W. Ryan binghamton.edu> writes: > > suppose I have some logical vector > > x <- as.logical(c(0,0,0,1,0,0,1,1,0)) > x > > How would I make the words TRUE appear on the screen in a different > color from the words FALSE? > > Thanks. > > --Chris # install.packages("xterm256") libra

Re: [R] conditional coloring of output text in console or in GUI

2009-06-30 Thread Liviu Andronic
Hello, On 6/30/09, Christopher W. Ryan wrote: > suppose I have some logical vector > > x <- as.logical(c(0,0,0,1,0,0,1,1,0)) > x > > How would I make the words TRUE appear on the screen in a different > color from the words FALSE? > I believe xterm256 would help with this, and perhaps highlig