error
1
0
Entering edit mode
مریم • 0
@91082a7a
Last seen 2.7 years ago
Iran

Enter the body of text here

Code should be placed in three backticks as shown below


# include your problematic code here with any corresponding output 
# please also include the results of running the following in an R session 

sessionInfo( )


#3: correlation heatmap (+hierarchical clustering)

cor_raw<-cor(log_raw_ex)
library(pheatmap)
library(ggplot2)
group2<-c (paste0("collagen",1:2) ,paste0("collagen and cisplatin",1:2),paste0("non",
 "non",1:4))
group2
pheatmap(cor_raw ,
         cellwidth=20,
         cellheight=20,
         labels_row=group2,
         labels_col=group2,
         color="blue2","yellow","burlywood3", 
         clustering_distance_cols ="binary",
         clustering_distance_rows ="binary")

error Error in sample.int(m, k) : vector size cannot be NA/NaN In addition: Warning message: In sample.int(m, k) : NAs introduced by coercion

plasFIA • 705 views
ADD COMMENT
0
Entering edit mode

Please guide

ADD REPLY
1
Entering edit mode
@james-w-macdonald-5106
Last seen 1 hour ago
United States

The pheatmap function is meant for numeric data, but you are providing character data. What sort of heatmap do you expect to get from character data?

ADD COMMENT

Login before adding your answer.

Traffic: 675 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6