用pheatmap函數(shù)在Linux系統(tǒng)上畫圖
輸入數(shù)據(jù)格式:如下
p2=pheatmap(marker,cluster_cols = T,cluster_rows = T,clustering_distance_rows = "correlation",scale = 'column',colorRampPalette(colors = c("blue","white","red"))(100),treeheight_row = 20,treeheight_col = 20,cellwidth = 15,cellheight =15,border_color = 'white',fontsize = 15,legend_labels = 'scale.avg_logFC',legend = T)
結(jié)果出現(xiàn)了如下error:
Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, : ,border_color = 'white',fontsize = 15,legend_labels = 'scale.avg_logFC',legend = T)無法打開X11cairo設(shè)備
這里只需要補(bǔ)充一個參數(shù)就行:silent = T,函數(shù)默認(rèn)silent=F,參數(shù)解釋如下:
do not draw the plot (useful when using the gtable output)饲握,而我們使用xshell連接服務(wù)器時澈蚌,無法實現(xiàn)畫圖奕短,故出現(xiàn)error流部,把silent改成T铁坎,讓它不畫圖绸罗,就可以啦草添,正常出出圖用ggsave保存就可以啦