Keywords: Mosaic titanic independent.png en Mosaic plot of the titanic data left and mosaic plot right if all three variables would be independent own Sigbert 2009-01-30 png mosaic_titanic_independent png width 800 height 480 par mfrow c 1 2 titanic <- apply Titanic c 1 2 4 sum mosaicplot titanic sort c 2 1 3 dir c 'v' 'h' 'h' color T off 3 independent <- outer outer apply titanic 1 sum apply titanic 2 sum apply titanic 3 sum /sum titanic 2 dimnames independent <- dimnames titanic mosaicplot independent sort c 2 1 3 dir c 'v' 'h' 'h' color T off 3 dev off Created with R Mosaic plots Diagrams in English Sinking of the RMS Titanic |