This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in pheatmap: formal argument "scale" matched by multiple actual arguments

Hello

I am using pheatmap and my code is :

pheatmap(RPL_fpkm_data, scale = "row", annotation_col = a,
         treeheight_row=0, treeheight_col=0, cluster_cols = FALSE,
         cluster_rows = FALSE,scale = "none", show_colnames=F,
         color = colorRampPalette(colors = c("blue","white","red"))(100))

There is the error:

Error in pheatmap(RPL_fpkm_data, scale = "row", annotation_col = a, treeheight_row = 0,  : 
  formal argument "scale" matched by multiple actual arguments

I appreaciate your help

r pheatmap

1 answer

scale = "row" and scale = "none" in conflict in your function, you defined them twice.

Log in to answer this question.