我有數據點日期的格式如下:次系列日期R中
220081107 0.858136237
20081108 0.858967483
20081109 0.855642438
20081110 0.832782805
20081111 0.775425851
20081112 0.918402553
20081204 1.21807182
20081205 1.17484629
20081206 1.16694939
20081207 1.16196179
20081208 1.64284575
20081209 1.97950602
20081210 1.01981628
20090108 1.59754205
20090109 1.6046077
20090110 1.61084223
20090111 1.61167347
20090112 1.61832356
20090113 1.5838263
20090114 1.33320141
20090205 1.56512284
20090206 1.56179786
20090207 1.56595421
20090208 1.57842302
20090209 1.62954557
20090210 1.81616342
20090211 2.33320713
20090305 1.90760207
20090306 1.95955575
20090307 2.13121104
20090308 2.39638281
20090309 1.91799271
20090310 1.59712648
20090311 3.54393744
20091110 0.975759506
20091111 0.720147073
,這是我的X軸,當我嘗試繪圖與我的數據點的時間序列,將有2008年和2009年之間的差距非常大。我試圖消除這種差距,有人能幫助我嗎?
請向我們展示您的代碼。 – zero323
做一個可重現的例子。 – Noah
infile中< - 粘貼( '/家庭/ NIER_project/model_runs /全部52 /',VAR [II], 'out_valid_data_points_analysis',九月= '') 大<〜掃描(infile中,列表(jtime = 0,觀測值= 0,base = 0,basebc = 0,da = 0)) jtime <-big $ jtime obs <-big $ obs da <-big $ da base <-big $ base basebc <-big $ basebc XMIN <-0 XMAX <-max(jtime) YMIN <-min(OBS,噠,基峯) YMAX <-max(OBS,噠,基峯) x範圍<-range(XMIN,XMAX) yrange <-range(ymin,ymax) par(pch ='o') plot(jtime,base,xlim = xrange,ylim = yrange,col = 1,xlab ='',ylab ='') – hamideh