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 code but it seems to be inflexible in terms of changing the scale and the colors. I was wondering if map.market is an application of a more general plotting function? From my reading of the code it looks like that's not the case.
Anyhow I am very grateful. Osman On 27-Jun-09, at 2:34 PM, jim holtman wrote: > check out 'map.market' in the 'portfolio' package. > > On Fri, Jun 26, 2009 at 11:27 PM, Osman Al-Radi <osman.al.r...@gmail.com > > 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 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 > <r...@temple.edu>wrote: > > > I think you are looking for mosaic() > > > > table(df) > > library(vcd) > > mosaic(outcome ~ group, data=df) > > > > Rich > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.html > and provide commented, minimal, self-contained, reproducible code. > > > > -- > Jim Holtman > Cincinnati, OH > +1 513 646 9390 > > What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ 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.html and provide commented, minimal, self-contained, reproducible code.