l******e 发帖数: 125 | 1 想比较两样品表达谱的相似性,如何作出x-y轴散点图,>log2的红色,<-log2的蓝色,
中间的灰色。对matlab不懂,stanford 的SAM怎么用不了?有什么软件推荐么。R里怎
么做?
多谢! | g******2 发帖数: 234 | 2 suppose your data is a data frame with 2 columns: x and y.
data$group <- 1
data$group[data$x < - log(2)] <- 2
data$group[data$x > log(2)] <- 3
plot(data$x[data$group == 1], data$y[data$group == 1], xlab = "x", ylab = "y
", xlim = range(data$x), ylim = range(data$y))
points(data$x[data$group == 2], data$x[data$group == 2], col = "blue")
points(data$x[data$group == 3], data$x[data$group == 3], col = "red") | S******6 发帖数: 752 | |
|