Hello.

I am looking for a way to add table values (from a "table" object) into a
mosaic plot of that table (which is produced by the "mosaicplot" command on
the table object).

The only reference I was successful in finding on the web was in a script
here:
http://tables2graphs.com/doku.php?id=03_descriptive_statistics#figure_2
http://svn.tables2graphs.com/tables2graphs/Rcode/Final%20Code%20for%20Website/figure_2_iversen_table_1.R
by using the "text" command, with manual tweaking of the text coordinates.

Two questions arise:
1) Is there a way to know in advance where these coordinates will be in the
plot, so I could add them by a more simple (or at least smart) command ?
2) how can I easily match the table values to their location on the
mosaicplot ?

A short example:

require(stats)
mosaicplot(~  Sex + Survived, data = Titanic)
text( .4,.6, "where to get this number ?",col = "red", cex = 2)
text( .4,.1, "and how to find coordinates ?",col = "blue", cex = 1.5)
text( .89,.3, "and rotation ?!",col = "white", srt = -90, cex = 2)


Thanks,
Tal.



----------------------------------------------
Tal Galili
Phone number: 972-50-3373767
FaceBook: Tal Galili
My Blog:
www.talgalili.com

	[[alternative HTML version deleted]]

