[R] How to make the cell background of a table informative?
Uwe Ligges
ligges at statistik.tu-dortmund.de
Mon Dec 3 11:44:31 CET 2012
On 03.12.2012 04:41, dweeb wrote:
> I wish to create a table in which the foreground is a number (abundance) but
> the background is a visual representation of a ratio (shallow:deep). In
> other words, the background of each cell of the table would be two colours
> or patterns set in a similar fashion to a stacked bar in a bar graph based
> on a secondary parameter/vector.
>
> The table will be extensive (15 by 30) and so I don't want to have to enter
> the values for each cell manually, but rather refer to a variable. I have
> seen how to create single color backgrounds, and backgrounds of a color that
> represents a category, but not a ratio.
>
> Possible?
You can draw, e.g. two filled polygons of appropriate sizes in the
background before adding the foreground.
Uwe Ligges
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-make-the-cell-background-of-a-table-informative-tp4651745.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
More information about the R-help
mailing list