摘要:
1、 > par(mfrow = c(2,3)) > plot(1:10, bty = "o", main = "ooo", cex.main = 3) > plot(1:10, bty = "l", main = "lll", cex.main = 3) > plot(1:10, bty = "u 阅读全文
摘要:
1、 > coor <- data.frame( x = c(3,4,5),y = c(10,20,30), + xend = c(2.5,3.5,4.5), yend = c(20,30,10)) > coor x y xend yend 1 3 10 2.5 20 2 4 20 3.5 30 3 阅读全文
摘要:
cumsum函数用于对数值向量进行累加 1、 > dat <- c(3, 1, 7, 2, 4) > dat ## 数值向量 [1] 3 1 7 2 4 > cumsum(dat) ## 逐项累加 [1] 3 4 11 13 17 2、用于矩阵中 > a <- c(3, 2, 4, 1) > b < 阅读全文