[R] Tktable cell colors
James Wettenhall
wettenhall at wehi.edu.au
Tue Jul 29 02:49:17 CEST 2003
Thomas Sudler <TSudler at ch.imshealth.com> wrote:
> color of all the cells, that's no problem. But is it also
possible to define
> another color for different cells? (example: Cell at position
[1,1]:red,
Thomas,
Try this:
require(tcltk)
tclRequire("Tktable")
tt <- tktoplevel()
table1 <- tkwidget(tt,"table")
tkpack(table1)
tkcmd(.Tk.ID(table1),"tag","celltag","ZeroZero","0,0")
tkcmd(.Tk.ID(table1),"tag","celltag","ZeroOne","0,1")
tkcmd(.Tk.ID(table1),"tag","configure","ZeroZero",bg="red")
tkcmd(.Tk.ID(table1),"tag","configure","ZeroOne",bg="blue")
Regards,
James
> Thank you very much for your answer. It works great.
> Thomas.
More information about the R-help
mailing list