[R] adding labels to mosaicplots

martin@ist.org martin at ist.org
Sat Dec 13 18:00:04 CET 2003


Hi,

is there a way to add labels to mosaicplots, similar to barplot where 
you can use

bp <- barplot(data)
mtext(at=colMeans(bp),...)

to display text at the midpoints of bars/groups of bars.

Im thinking of a function or attribute that gives the midpoints (or 
corners) of the rectangles drawn by mosaicplot.

Thank you, 

Martin Keller-Ressel




More information about the R-help mailing list