search for: probv

Displaying 1 result from an estimated 1 matches for "probv".

Did you mean: probe
2011 Dec 14
0
hclust and ggplot2
...plot; Error: ggplot2 doesn't know how to deal with data of class phylo. Regular plot works fine but I can't get ggplot2 to work. see code below.... rows=100 columns=100 #create matrix all=matrix(nrow=rows, ncol=columns) #initialize first column all[,1]=rbinom(rows,1,.5) #set probability probv=.9 for (j in 2:columns) { for (i in 1:rows) { #set the probability based on the values in the columns to the left if (all[i,j-1]==1) {all[i,j]=rbinom(1,1,1-probv)} else {all[i,j]=rbinom(1,1,probv)} } } #make the first row an outlier all[5,]=r...