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 represents the entire
population. The axes are non-informative.

I am trying to recreate the plot in the following website, used to represent
the market capital of public companies. I would like to use a similar plot
for a totally different application.

The website: http://finviz.com/map.ashx

The color code in the above link represents daily change in the stocks, in
my intended plot I would like the color shade to represent the outcome
(probability of an event in a predefined time usually 1 year).

I am again grateful for your assistance.

Osman



Osman O. Al-Radi, MD, MSc, FRCSC
Staff Cardiovascular Surgeon
Co-medical director, Tissue Bank
The Hospital for Sick Children
University of Toronto, Canada


On Fri, Jun 19, 2009 at 6:55 PM, Richard M. Heiberger <rmh@temple.edu>wrote:

> I think you are looking for mosaic()
>
> table(df)
> library(vcd)
> mosaic(outcome ~ group, data=df)
>
> Rich
>

	[[alternative HTML version deleted]]


