[R] heatmaps and layouts

2012-07-09 Thread Tanu Soni
I'm using R to create a heatmap from a matrix using heatmap.2 - and i want to group these images into one big image - What i usually use to achieve this is layout() - but this doesn't work, as heatmap.2 uses layout, and apparently layout does not work recursively. Does anyone have any suggestions

[R] side by side symmetric heatmap

2012-06-13 Thread Tanu Soni
I am trying to plot two heatmaps on same page . I am using heatmap() so that i can draw symmetrical heatmap but par() does not work with heatmap . Is there a way to plot two symmetrical heatmaps on same page. -- Tanu [[alternative HTML version deleted]] _

[R] heatmap.2 clustering and adding add.expr

2012-06-06 Thread Tanu Soni
luster1$order i can change the order in my "sig" matrix to get the correct "add.expr" heatmap.2 description says that it uses dist matrix and hclust by default.Please if anyone can guide me y do i get different clusters order with "cluster1<-hclust(dist(d874n))" and &

[R] how to extract p values in svyglm

2012-02-12 Thread Tanu Soni
summary(result) Call: svyglm(Injury ~ seat, sD, family = quasibinomial(link = "logit")) Survey design: svydesign(~1, prob = NULL, strata = Data[, 1], weights = Data[, 4], data = Data, fpc = ~fPc) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -4.256875 0.001421

[R] lme contrast Error in `$<-.data.frame`(`*tmp*`, "df", value = numeric(0)) :

2011-11-17 Thread Tanu Soni
I am trying to run a lme model and some contrast for a matrix . lnY [1] 10.911628 11.198557 11.316971 11.464869 11.575233 11.612101 11.755903 11.722035 11.757705 11.863744 11.846515 11.852721 11.866936 11.838452 11.946680 11.885509 [17] 11.583309 11.750082 11.756005 11.630797 11.705536 11.566722 1