Re: [R] a plot of stacked boxes

2009-06-29 Thread Osman Radi
Dear Jim, This almost exactly what I need. However, because I am not trying to plot price change as the color parameter, I need the scale to be positive only (0 to 1) and would like to be able to control the color scheme of the scale. I looked at the help file for map.market() and it's cod

Re: [R] a plot of stacked boxes

2009-06-27 Thread jim holtman
check out 'map.market' in the 'portfolio' package. On Fri, Jun 26, 2009 at 11:27 PM, Osman Al-Radi wrote: > Dear Richard and David, > > Thanks for this reference. I looked into vcd and mosaic plot, it is a nice > plot for investigating associations between two or more variables. However, > I just

Re: [R] a plot of stacked boxes

2009-06-26 Thread hadley wickham
On Fri, Jun 26, 2009 at 10:27 PM, Osman Al-Radi wrote: > Dear Richard and David, > > Thanks for this reference. I looked into vcd and mosaic plot, it is a nice > plot for investigating associations between two or more variables. However, > I just need to plot the frequency of a single variable as t

Re: [R] a plot of stacked boxes

2009-06-26 Thread Osman Al-Radi
Dear Richard and David, Thanks for this reference. I looked into vcd and mosaic plot, it is a nice plot for investigating associations between two or more variables. However, I just need to plot the frequency of a single variable as the area of the box. boxes are stacked to fill a larger box that

Re: [R] a plot of stacked boxes

2009-06-19 Thread Richard M. Heiberger
I think you are looking for mosaic() table(df) library(vcd) mosaic(outcome ~ group, data=df) Rich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide

Re: [R] a plot of stacked boxes

2009-06-19 Thread David Winsemius
Perhaps this package can help: http://cran.r-project.org/web/packages/vcd/index.html Page 4 of this vignette looks like a complete solutions has already been programmed: http://cran.r-project.org/web/packages/vcd/vignettes/residual-shadings.pdf -- On Jun 19, 2009, at 12:41 PM, Osman Al-Rad

[R] a plot of stacked boxes

2009-06-19 Thread Osman Al-Radi
Hello, I would like to create a plot composed of stacked boxes (squares or rectangles), where the size of the box would represent the frequency of observations based on a categorical variable (group), the color would represent the proportion of success (binary) within that group (outcome) on a pre

[R] a plot of stacked boxes

2009-06-19 Thread Osman Al-Radi
Hello, I would like to create a plot composed of stacked boxes (squares or rectangles), where the size of the box would represent the frequency of observations based on a categorical variable (group), the color would represent the proportion of success (binary) within that group (outcome) on a pre