[R] a plot of stacked boxes

hadley wickham h.wickham at gmail.com
Sat Jun 27 05:47:37 CEST 2009


On Fri, Jun 26, 2009 at 10:27 PM, Osman Al-Radi<osman.al.radi at 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

That plot is called a treemap, and as far as I know there is no
implementation in R.  If you wanted you to implement it yourself, the
java code from http://www.cs.umd.edu/hcil/treemap-history/Treemaps-Java-Algorithms.zip
would probably be a good place to start.

Hadley

-- 
http://had.co.nz/




More information about the R-help mailing list