创建矩阵
...
a <- letters[1:10]
a
...
创建数组
...
dim(a)=c(2,5)
a
...
画热图
...
install.packages("pheatmap")
library(pheatmap)
a <- seq(1:10)
dim(a)=c(2,5)
pheatmap::pheatmap(a)
a
...
...
a <- letters[1:10]
a
...
...
dim(a)=c(2,5)
a
...
...
install.packages("pheatmap")
library(pheatmap)
a <- seq(1:10)
dim(a)=c(2,5)
pheatmap::pheatmap(a)
a
...
本文标题:R语言基础知识之向量、矩阵、画热图简单代码
本文链接:https://www.haomeiwen.com/subject/sphhvltx.html
网友评论