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? Thanks in advance, Marcin
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
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?As Michael noted, it depends on the aspect ratio. For a more flexible layout, you could try package vcd. Dieter