R语言可以用来做什么呢?这其实很多人在学某些东西一样,根本找不到方向,就好像现在的我一样。这也是自学的困难之处。希望用一个的时间来进修这门课程。目前最好玩的是ggplot这个安装包!
1, RStudio, Paintmap 包, 热力图
程序语言:
install.packages(“paintmap”)
library(“paintmap”)PlotData <- matrix(sample(c(TRUE, FALSE), 50, replace = TRUE), 10, 5,
dimnames = list(paste0(“Data”, 1:10), paste0(“Group”, 1:5)))
ColMatrix <- color_matrix(PlotData,
colors = colorRampPalette(c(“#a87963”, “#4b61ba”))(5))paintmap(ColMatrix)
图示: