zhou1_20 发表于 2016-10-12 15:21 
你数据读取有问题,按下面的方法做吧
library(tidyr)
library(ggplot2)
B1=read.csv("B.csv",stringsAsFactors = FALSE,header=T)
B2=gather(B1,soil,moisture,-site)
ggplotB2, aes(soil, moisture, group = site, colour = site))+geom_line()
这是我当时写的,是哪步有问题啊,matrix函数之前没有用过。