[R] Histogram with colors according to factor

2008-07-08 Thread Hans W. Borchers
Given a data frame with a continuous variable and a factor. I would like to generate a histogram of the continuous variable, where each bar is filled with different colors according to the percentage of factor values falling into this region of the continuous variable. I looked into packages

Re: [R] Histogram with colors according to factor

2008-07-08 Thread ONKELINX, Thierry
: dinsdag 8 juli 2008 13:23 Aan: r-help@r-project.org Onderwerp: [R] Histogram with colors according to factor Given a data frame with a continuous variable and a factor. I would like to generate a histogram of the continuous variable, where each bar is filled with different colors according

Re: [R] Histogram with colors according to factor

2008-07-08 Thread Hans W. Borchers
No; thanks for your try, but this is not what I want. Here each bar has one single color. I would like to render each bar with several colors according to the distribution of a factor. I now learned that this is called stacked histogram (damned Excel). In the following entry

Re: [R] Histogram with colors according to factor

2008-07-08 Thread hadley wickham
Given a data frame with a continuous variable and a factor. I would like to generate a histogram of the continuous variable, where each bar is filled with different colors according to the percentage of factor values falling into this region of the continuous variable. How exactly do you want