File:Mosaic titanic independent.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Mosaic_titanic_independent.png(800 × 480 pixels, file size: 7 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Mosaic plot of the titanic data (left) and mosaic plot (right) if all three variables would be independent.
Date
Source Own work
Author Sigbert
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()
R logo 
This chart was created with R.

Licensing[edit]

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:44, 30 January 2010Thumbnail for version as of 08:44, 30 January 2010800 × 480 (7 KB)Sigbert (talk | contribs){{Information |Description={{en|1=Mosaic plot of the titanic data (left) and mosaic plot (right) if all three variables would be independent.}} |Source={{own}} |Author=Sigbert |Date=2009-01-30 |Permission= |other_versions= }} [[Category:

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: