Re: [R] Conditional coloring of area between curves

2013-06-07 Thread William Dunlap
so > that's no > problem. Thanks a lot! > > Roland > ____ > Von: Duncan Murdoch [murdoch.dun...@gmail.com] > Gesendet: Donnerstag, 6. Juni 2013 18:45 > An: Roland Pape > Cc: r-help@r-project.org > Betreff: Re: [R] Conditiona

Re: [R] Conditional coloring of area between curves

2013-06-07 Thread Roland Pape
roject.org Betreff: Re: [R] Conditional coloring of area between curves On 06/06/2013 10:41 AM, Roland Pape wrote: > Dear list, > > I have two time series of temperatures from different sites plotted in the > same diagram and would like to color the area between the curves differently,

Re: [R] Conditional coloring of area between curves

2013-06-06 Thread Duncan Murdoch
On 06/06/2013 10:41 AM, Roland Pape wrote: Dear list, I have two time series of temperatures from different sites plotted in the same diagram and would like to color the area between the curves differently, dependent on whether site 1 is cooler than site 2 (colored let's say in blue) or warme

[R] Conditional coloring of area between curves

2013-06-06 Thread Roland Pape
Dear list, I have two time series of temperatures from different sites plotted in the same diagram and would like to color the area between the curves differently, dependent on whether site 1 is cooler than site 2 (colored let's say in blue) or warmer (red). While polygone() works fine to color

Re: [R] Conditional coloring

2011-03-18 Thread Pavan G
Mighty thanks Peter. This does precisely what I wanted. Thanks again. On Mon, Mar 14, 2011 at 4:52 PM, Peter Langfelder < peter.langfel...@gmail.com> wrote: > On Mon, Mar 14, 2011 at 1:06 PM, Pavan G wrote: > > Hello All, > > I have a histogram with values above and below 0. I would like to colo

Re: [R] Conditional coloring

2011-03-14 Thread Peter Langfelder
On Mon, Mar 14, 2011 at 1:06 PM, Pavan G wrote: > Hello All, > I have a histogram with values above and below 0. I would like to color the > +ve bars green and -ve bars red. I am plotting data using: > > hist(a[,2],breaks=100,main="W3",xlab="Movement towards site (A)") > > Can someone please comme

[R] Conditional coloring

2011-03-14 Thread Pavan G
Hello All, I have a histogram with values above and below 0. I would like to color the +ve bars green and -ve bars red. I am plotting data using: hist(a[,2],breaks=100,main="W3",xlab="Movement towards site (A)") Can someone please comment on how it can be done? Thanks! [[alternative HTML

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

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

2009-06-30 Thread Christopher W. Ryan
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 -- Christopher W. Ryan, MD SUNY Upstate Medical University Clinical Campus at Binghamton 40 Arch Street, Jo