Skip to content
Prev 245050 / 398503 Next

problems with mosaic plot

kiotoqq <kiotoqq <at> googlemail.com> writes:
Arthritis is a dataset contained in vcd package.  Have you installed *and* 
loaded the package?

Test with:
data (Arthritis)
But if this is the problem, there should be an error message like: "Error in 
mosaicplot(arthritis) : object 'arthritis' not found"

Do you have another graphics device open?  
Try:
graphics.off()
to close all currently open devices, and then re-run mosaicplot command, but R 
is case-sensitive, hence:

mosaicplot(Arthritis)
mosaicplot(~ Sex + Treatment + Improved, data = Arthritis, color = TRUE)

Hope this helps,

Michael Bibo
Queensland Health