0
我想繪製多個y值作爲單個x值(日期)的點。每個時間點具有可變數量的y值。它與在同一圖上繪製多條線不同,因爲時間t處的點與時間t + 1處的點之間的關係是未知的。我也不想要一個boxplot。我想清楚地看到每一點。當我試圖繪製這個,R想重新組織X軸,拋出我的時間系列。誰能幫忙?多點時間序列
伊恩
windows()
plot(mu ~ date, xlab="Date", ylab="Mean Length (um)")
axis(1, date, format(date, "%b %d"))
site date mu
eldo pipe 9/3/2012 89.1365072
eldo pipe 9/3/2012 125.235052
eldo pipe 9/3/2012 135.153096
eldo pipe 9/3/2012 113.847438
eldo pipe 9/3/2012 89.732397
eldo pipe 9/3/2012 111.071991
eldo pipe 9/3/2012 122.437213
eldo pipe 9/3/2012 134.821803
eldo pipe 9/3/2012 110.687526
eldo pipe 9/3/2012 100.9783758
eldo pipe 9/3/2012 131.321202
eldo pipe 9/3/2012 123.56519
eldo pipe 9/3/2012 136.517857
eldo pipe 9/26/2012 96.0162055
eldo pipe 9/26/2012 102.1533248
eldo pipe 9/26/2012 119.846013
eldo pipe 9/26/2012 130.1969079
eldo pipe 9/26/2012 135.3865
eldo pipe 9/26/2012 140.3697581
eldo pipe 9/26/2012 108.4733771
eldo pipe 9/26/2012 122.834203
eldo pipe 9/26/2012 137.80903
eldo pipe 9/26/2012 120.292561
eldo pipe 9/26/2012 133.746842
eldo pipe 11/2/2012 106.26084
eldo pipe 11/2/2012 125.249647
eldo pipe 11/2/2012 129.028305
eldo pipe 11/2/2012 137.932549
eldo pipe 11/2/2012 147.8790966
eldo pipe 11/2/2012 116.63048
eldo pipe 11/2/2012 121.930454
eldo pipe 11/2/2012 86.85304
eldo pipe 11/2/2012 130.63338
eldo pipe 11/2/2012 146.3816077
eldo pipe 11/2/2012 84.58692
eldo pipe 11/2/2012 103.925925
eldo pipe 11/2/2012 111.2692061
eldo pipe 11/2/2012 120.093059
eldo pipe 11/2/2012 131.782033
這是偉大的。作爲後續問題,是否有辦法將日期放在x軸上,以便點之間的距離反映實際的時間距離?我試圖扭轉它們,但最終得到了奇怪的y軸。 – bishopia
我不確定。讓我對它做一些研究。 –