Pheatmap包使用

Pheatmap简介: Pretty Heatmaps——Implementation of heatmaps that offers more control over dimensions and appearance.

1.安装

source(“https://bioconductor.org/biocLite.R”)

biocLite(“pheatmap”)

2.测试

library(pheatmap)
#创建数据集test测试矩阵
test = matrix(rnorm(200), 20, 10)
test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
colnames(test) = paste(“Test”, 1:10, sep = “”)
rownames(test) = paste(“Gene”, 1:20, sep = “”)
# 用pheatmap函数画热图
pheatmap(test)

如若转载,请注明出处:https://www.ouq.net/pheatmap%e4%bd%bf%e7%94%a8.html

(0)
打赏 微信打赏,为服务器增加50M流量 微信打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量
上一篇 03/13/2020
下一篇 03/15/2020

相关推荐

  • R:gene symbol与id转换

    利用R将gene symbol与id转换 安装所需包 if (!requireNamespace(“BiocManager”, quietly = TRUE…

    03/16/2020
    388
  • R:读取Excel的xls和xlsx格式文件

    #安装加载readxl包 library(“readxl”) #读取xlsx文件 file<-read_excel(“xxx.xlsx&#…

    R 12/05/2023
    179
  • ggplot2绘图教程

    直方图:geom_histogram 分组直方图的排列方式 position=”dodge” ggplot(small)+geom_histogram(aes(x=price, f…

    03/07/2022
    100
  • rconfig:在命令行管理 R 配置

    Configuration management using files (JSON, YAML, separated text), JSON strings, and comma…

    R 04/01/2022
    169
  • 安装Seurat-data包

    SeuratData 是一种利用 R 的内部软件包和数据管理系统以 Seurat 对象形式分发数据集的机制。它为用户访问 Seurat 小节中使用的数据集提供了一种简便的方法。安装…

    R 01/03/2024
    245