[R] Truncated labels with mosaicplot

Michael Bibo michael_bibo at health.qld.gov.au
Wed Feb 11 07:57:39 CET 2009


Marcin Kozak <nyggus <at> gmail.com> writes:

> 
> How can I deal with truncated labels in the mosaicplot()? Look at the example:
> mosaicplot(~ gear + carb, data = mtcars, color = TRUE)
> 
> Look at "carb" (the number of carburetors): the label "8" is
> truncated. How this might be dealt with?
> 
Ummm...  not for me (R-2.8.1 on WinXP)

Often plot labels can be missing or truncated simply because there is not enough
room for them.  If you are using windows, what happens if you drag the corner of
the plot window to make it bigger?  I can make the plot lose half of its "8"
label by reducing the vertical dimension of the plot window.

Michael




More information about the R-help mailing list