Hi Tanya, Have you looked at the return value of pheatmap? ret<-pheatmap(counts_filtered_df,scale="row",cluster_col=FALSE, cluster_row=TRUE,border_color=NA,show_rownames = TRUE) str(ret) names(ret$tree_row) names(ret$tree_col)
Look at what is in "ret" to see if your numeric matrix is hidden there. Jim On Mon, Sep 3, 2018 at 7:25 PM Singh, Tanya <t.si...@ucl.ac.uk> wrote: > > Hi > > > > I am plotting a pheatmap using following line in a R code > > pheatmap(counts_filtered_df,scale="row",cluster_col=FALSE,cluster_row=TRUE,border_color=NA,show_rownames > = T) > > > > I want to extract the row names in the same order as shown in pheatmap and > the z scores for them. > > > > So basically a numeric matrix instead of a figure. Can someone help me how > this can be done > > > > Thanks > > > > Tanya > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.