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
: 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
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
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
4 matches
Mail list logo