Difference between revisions of "VennDiagram.R"

From Organic Design wiki
(New page: # This illustrates a problem with missing values library(limma) p <- 100 n <- 3 x <- matrix(0, nr=p,nc=n) set.seed(1) x[,1] <- rbinom(p, 1, 1/10) x[,2] <- rbinom(p, 1, 1/10) x[,3] <- rbi...)
 
m
Line 1: Line 1:
 +
<pre>
 
# This illustrates a problem with missing values
 
# This illustrates a problem with missing values
 
 
library(limma)
 
library(limma)
 
p <- 100
 
p <- 100
Line 19: Line 19:
 
vennCounts(x)[7,]
 
vennCounts(x)[7,]
 
vennDiagram(x)
 
vennDiagram(x)
 +
</pre>

Revision as of 01:58, 28 May 2007

# This illustrates a problem with missing values
library(limma)
p <- 100
n <- 3

x <- matrix(0, nr=p,nc=n)
set.seed(1)
x[,1] <- rbinom(p, 1, 1/10)
x[,2] <- rbinom(p, 1, 1/10)
x[,3] <- rbinom(p, 1, 1/10)
x

vennCounts(x)[7,]
vennDiagram(x)

x[4,3] <- NA

vennCounts(x)[7,]
vennDiagram(x)