Re: [R] Help with color coded bar graph

2007-09-08 Thread Jim Lemon
Luis Naver wrote: I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in the form of a png with the following code: A = floor(runif(10)*3) - 1 png(width=100,

[R] Help with color coded bar graph

2007-09-07 Thread Luis Naver
I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in the form of a png with the following code: A = floor(runif(10)*3) - 1 png(width=100, height=10)

Re: [R] Help with color coded bar graph

2007-09-07 Thread Marc Schwartz
On Fri, 2007-09-07 at 12:45 -0700, Luis Naver wrote: I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in the form of a png with the following code: A =

Re: [R] Help with color coded bar graph

2007-09-07 Thread Achim Zeileis
On Fri, 7 Sep 2007, Luis Naver wrote: I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in the form of a png with the following code: A = floor(runif(10)*3) - 1

Re: [R] Help with color coded bar graph

2007-09-07 Thread Marc Schwartz
On Fri, 2007-09-07 at 15:07 -0500, Marc Schwartz wrote: On Fri, 2007-09-07 at 12:45 -0700, Luis Naver wrote: I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in

Re: [R] Help with color coded bar graph

2007-09-07 Thread Luis Naver
Thanks to all who replied (and very quickly). Unfortunatly I was not clear enough as to my intentions. My goal is to replicate a graph I saw in the work by Perry, Miller and Enright in A comparison of methods for the statistical analysis of spatial point patterns in plant ecology