Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: AW: Graph: Colouring table cells based on conditions or data distribution


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: AW: Graph: Colouring table cells based on conditions or data distribution
Date   Fri, 16 Oct 2009 10:36:21 +0100

In essence, as Maarten's reference implies, it can be done. I don't have a precise recipe for your particular request, but the code in -corrtable- from SSC shows one strategy: 

loop over cells in table { 
	draw a graph for each cell with desired text and colour
} 

combine the graphs 

Another strategy would resemble ways in which people draw heat maps, or indeed maps, by a series of calls to -twoway area-. Sergiy Radyakin has done something similar to that, but I can't vouch for whether he has code to do what you want that is also publicly available. 

Nick 
[email protected] 

Maarten buis

This talk by Nick Cox at the last German Stata Users' Meeting may be 
what you are looking for.

http://ideas.repec.org/p/boc/dsug09/01.html

--- On Fri, 16/10/09, [email protected] wrote:
> In my work I often have to display both a table (to pick
> data from) and a graph (for visual impression) to users
> and I'm constantly trying to combine both. Colouring
> tables is one way to do this if rules/conditions are
> user-defineable. 
> 
> I thought about setting up a coloured twoway table in Stata
> but that doesn't seem to be easy


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index