R语言,干旱,正负折线图,动图,交互折线图

# Sun Aug 30 11:10:15 2020 -

# 字符编码:UTF-8
# R 版本:R x64 4.0.2 for window 10
# [email protected]
#个人笔记不负责任
# —— 拎了个梨
#
dt.zhuye <- read.csv('逐月数据.csv');head(dt.zhuye)
# Monthly    scPDSI
# 1 1951/1/1 -0.025726
# 2 1951/2/1 -0.210457
# 3 1951/3/1 -0.209980

dt.zhuye$Monthly <- as.Date(dt.zhuye$Monthly,format = "%Y/%m/%d") # 日期格式
dt.zhuye$zero <- dt.zhuye$scPDSI > 0 # 建立干湿分组备用
dt.zhuye[dt.zhuye == TRUE] <- '湿润'
dt.zhuye$zero[dt.zhuye$zero != '湿润'] <- '干旱'
dt.zhuye
# Sun Aug 30 11:02:36 2020 -gg作图-----------------------------

require(ggplot2)


ggplot(data = dt.zhuye,aes(x = Monthly,y = scPDSI,color = 'red'))+
  geom_line(size=1)

ggplot(data = dt.zhuye,aes(x = Monthly,y = scPDSI,fill = zero))+
  geom_col() + # 分组天色
  geom_point()+ # 散点图
  labs(x = '年份',
       y = "干旱指数(scPDSI)",
       title = "中国西南地区scPDSI干旱指数时间序列数据",
       subtitle = "1951-2016年每月",
       caption="")



ggsave('逐月数据.jpg',dpi = 300)

# Sun Aug 30 11:02:46 2020 --交互作图----------------------------

require(echarter)
require(dplyr)


echart() %>%
  ec_add_series(data = dt.zhuye, type = "bar",
                mapping = ecaes(x = Monthly,y = scPDSI,group = zero)) %>%
  ec_add_series(data = dt.zhuye, type = "line",
    mapping = ecaes(x = Monthly,y = scPDSI)) %>%
  ec_title(text = '1951-2016年每月的中国西南地区scPDSI干旱指数时间序列数据')

# Sun Aug 30 11:50:22 2020 --动画演示----------------------------
library(gganimate)

ggplot(gapminder, aes(gdpPercap, lifeExp, size=pop, color=continent))+geom_point()+scale_x_log10() +
  transition_time(year) + ease_aes('linear')

ggplot(data = dt.zhuye,aes(x = Monthly,y = scPDSI,fill = zero))+
  # scale_x_time()+
  geom_col() +ease_aes('linear') + # 分组天色
  transition_time(Monthly)+
  geom_point()+ # 散点图
  labs(x = '年份',
       y = "干旱指数(scPDSI)",
       title = "中国西南地区scPDSI干旱指数时间序列数据",
       subtitle = "1951-2016年每月",
       caption="")

gifski(list.files(pattern ='*.png'), gif_file = "变化动图.gif", width = 800, height = 600,
       delay = 1, loop = TRUE, progress = TRUE)
变化动图.gif

变化动图2.gif
echart包交互折线图

gg包正负折线图
Monthly scPDSI
1951/1/1    -0.025726
1951/2/1    -0.210457
1951/3/1    -0.20998
1951/4/1    -0.059364
1951/5/1    -0.412604
1951/6/1    -0.106541
1951/7/1    0.075328
1951/8/1    -0.007674
1951/9/1    -0.061571
1951/10/1   0.280278
1951/11/1   0.626561
1951/12/1   0.651113
1952/1/1    0.542565
1952/2/1    0.44825
1952/3/1    0.425726
1952/4/1    0.434314
1952/5/1    0.839483
1952/6/1    0.45008
1952/7/1    0.356421
1952/8/1    1.614632
1952/9/1    1.568807
1952/10/1   1.810318
1952/11/1   1.292942
1952/12/1   1.021869
1953/1/1    1.260298
1953/2/1    1.336302
1953/3/1    1.392604
1953/4/1    1.145825
1953/5/1    1.235785
1953/6/1    0.811491
1953/7/1    0.440457
1953/8/1    -0.195189
1953/9/1    0.169642
1953/10/1   0.25835
1953/11/1   -0.010477
1953/12/1   0.224036
1954/1/1    0.223598
1954/2/1    0.209702
1954/3/1    0.213181
1954/4/1    0.398569
1954/5/1    0.904851
1954/6/1    1.041352
1954/7/1    1.258588
1954/8/1    1.755567
1954/9/1    1.176223
1954/10/1   0.985348
1954/11/1   0.46835
1954/12/1   0.455388
1955/1/1    0.218171
1955/2/1    -0.043817
1955/3/1    0.225268
1955/4/1    -0.305547
1955/5/1    -0.430676
1955/6/1    0.010775
1955/7/1    0.415765
1955/8/1    0.456421
1955/9/1    0.361471
1955/10/1   0.356402
1955/11/1   0.851451
1955/12/1   0.553559
1956/1/1    0.52175
1956/2/1    0.314791
1956/3/1    0.378231
1956/4/1    0.211412
1956/5/1    0.920159
1956/6/1    0.486461
1956/7/1    -0.021531
1956/8/1    0.24833
1956/9/1    -0.31994
1956/10/1   -0.124453
1956/11/1   -0.108569
1956/12/1   -0.213439
1957/1/1    -0.023579
1957/2/1    0.20499
1957/3/1    0.274513
1957/4/1    0.307296
1957/5/1    0.448489
1957/6/1    0.480378
1957/7/1    0.615408
1957/8/1    -0.120974
1957/9/1    -0.021034
1957/10/1   -0.154592
1957/11/1   -0.307674
1957/12/1   -0.350676
1958/1/1    -0.264473
1958/2/1    -0.181392
1958/3/1    -0.922406
1958/4/1    -1.039563
1958/5/1    -1.269602
1958/6/1    -0.885586
1958/7/1    -0.512306
1958/8/1    -0.22841
1958/9/1    -0.52175
1958/10/1   -0.566501
1958/11/1   -0.830716
1958/12/1   -0.830915
1959/1/1    -0.291193
1959/2/1    0.464294
1959/3/1    0.629861
1959/4/1    0.425765
1959/5/1    0.872227
1959/6/1    0.687296
1959/7/1    -0.09161
1959/8/1    -0.179881
1959/9/1    -0.281213
1959/10/1   -0.484732
1959/11/1   -0.975268
1959/12/1   -0.786223
1960/1/1    -0.862227
1960/2/1    -0.812048
1960/3/1    -0.906541
1960/4/1    -1.331869
1960/5/1    -1.06328
1960/6/1    -0.918608
1960/7/1    -0.211412
1960/8/1    -0.417773
1960/9/1    -0.532565
1960/10/1   -0.617356
1960/11/1   -0.403201
1960/12/1   -0.476123
1961/1/1    -0.519662
1961/2/1    0.107435
1961/3/1    0.430716
1961/4/1    0.739384
1961/5/1    0.599364
1961/6/1    0.110696
1961/7/1    0.1867
1961/8/1    0.550378
1961/9/1    0.186183
1961/10/1   0.504115
1961/11/1   0.952147
1961/12/1   1.164195
1962/1/1    0.858151
1962/2/1    0.504056
1962/3/1    0.243897
1962/4/1    0.102903
1962/5/1    0.220915
1962/6/1    0.772922
1962/7/1    0.131511
1962/8/1    0.306461
1962/9/1    -0.728131
1962/10/1   -0.717455
1962/11/1   -0.95833
1962/12/1   -1.055547
1963/1/1    -1.274652
1963/2/1    -1.297336
1963/3/1    -1.349563
1963/4/1    -1.470616
1963/5/1    -1.532744
1963/6/1    -1.403618
1963/7/1    -1.017674
1963/8/1    -1.028668
1963/9/1    -1.026282
1963/10/1   0.091531
1963/11/1   0.672187
1963/12/1   0.67503
1964/1/1    0.669742
1964/2/1    0.691252
1964/3/1    0.588429
1964/4/1    0.764394
1964/5/1    0.462087
1964/6/1    0.83668
1964/7/1    0.429165
1964/8/1    0.554433
1964/9/1    0.754254
1964/10/1   0.927137
1964/11/1   0.578966
1964/12/1   0.633678
1965/1/1    0.575746
1965/2/1    0.639185
1965/3/1    0.561889
1965/4/1    0.869742
1965/5/1    0.796481
1965/6/1    1.202823
1965/7/1    0.806839
1965/8/1    0.915666
1965/9/1    0.844095
1965/10/1   1.799085
1965/11/1   1.610437
1965/12/1   1.874274
1966/1/1    1.504215
1966/2/1    0.969682
1966/3/1    0.411571
1966/4/1    0.137873
1966/5/1    0.187773
1966/6/1    0.433519
1966/7/1    0.840437
1966/8/1    0.931332
1966/9/1    0.409245
1966/10/1   0.527396
1966/11/1   0.165865
1966/12/1   0.11998
1967/1/1    0.056541
1967/2/1    0.352604
1967/3/1    0.421153
1967/4/1    0.555189
1967/5/1    0.748171
1967/6/1    0.722823
1967/7/1    0.537356
1967/8/1    0.66674
1967/9/1    1.060636
1967/10/1   0.947833
1967/11/1   1.323499
1967/12/1   1.275467
1968/1/1    1.372286
1968/2/1    1.510875
1968/3/1    1.572982
1968/4/1    1.969324
1968/5/1    1.914533
1968/6/1    1.803579
1968/7/1    1.851769
1968/8/1    2.284254
1968/9/1    1.93326
1968/10/1   0.810517
1968/11/1   0.162704
1968/12/1   -0.15163
1969/1/1    -0.108668
1969/2/1    -0.51992
1969/3/1    -0.761948
1969/4/1    -0.957296
1969/5/1    -1.344274
1969/6/1    -1.020159
1969/7/1    -0.753519
1969/8/1    -0.598191
1969/9/1    -0.899523
1969/10/1   -0.785646
1969/11/1   -0.696302
1969/12/1   -0.858171
1970/1/1    -0.648111
1970/2/1    -0.657992
1970/3/1    -0.132227
1970/4/1    0.309583
1970/5/1    0.354891
1970/6/1    0.012724
1970/7/1    0.830398
1970/8/1    0.314851
1970/9/1    0.236879
1970/10/1   0.090656
1970/11/1   0.225905
1970/12/1   0.773559
1971/1/1    0.787376
1971/2/1    0.61497
1971/3/1    0.280159
1971/4/1    0.187336
1971/5/1    0.402724
1971/6/1    0.535706
1971/7/1    0.076421
1971/8/1    0.295606
1971/9/1    0.228211
1971/10/1   0.29837
1971/11/1   0.10998
1971/12/1   0.100855
1972/1/1    -0.005785
1972/2/1    -0.025905
1972/3/1    -0.115189
1972/4/1    0.234891
1972/5/1    0.317535
1972/6/1    -0.106799
1972/7/1    -0.334433
1972/8/1    -1.117913
1972/9/1    -0.553956
1972/10/1   -0.558012
1972/11/1   0.127475
1972/12/1   0.209801
1973/1/1    0.304911
1973/2/1    0.197913
1973/3/1    0.271531
1973/4/1    0.74835
1973/5/1    1.149563
1973/6/1    1.401928
1973/7/1    1.158748
1973/8/1    1.13501
1973/9/1    1.374453
1973/10/1   0.945089
1973/11/1   1.034513
1973/12/1   0.789543
1974/1/1    0.715149
1974/2/1    0.42829
1974/3/1    0.602664
1974/4/1    0.928529
1974/5/1    1.214314
1974/6/1    1.165308
1974/7/1    1.347197
1974/8/1    1.452207
1974/9/1    0.870855
1974/10/1   0.34998
1974/11/1   0.076521
1974/12/1   0.01495
1975/1/1    0.209602
1975/2/1    0.138549
1975/3/1    -0.053121
1975/4/1    0.219781
1975/5/1    0.526561
1975/6/1    0.195666
1975/7/1    0.01159
1975/8/1    -0.400537
1975/9/1    -0.258012
1975/10/1   0.049622
1975/11/1   0.648072
1975/12/1   0.58668
1976/1/1    0.530537
1976/2/1    0.601292
1976/3/1    0.682704
1976/4/1    0.724076
1976/5/1    1.037853
1976/6/1    0.920318
1976/7/1    0.737555
1976/8/1    0.773797
1976/9/1    0.730119
1976/10/1   0.888151
1976/11/1   0.831372
1976/12/1   0.712167
1977/1/1    0.808211
1977/2/1    0.858549
1977/3/1    0.788847
1977/4/1    1.171412
1977/5/1    0.860517
1977/6/1    0.664493
1977/7/1    0.845924
1977/8/1    0.453738
1977/9/1    0.308708
1977/10/1   0.709742
1977/11/1   0.623837
1977/12/1   0.604513
1978/1/1    0.609682
1978/2/1    0.416322
1978/3/1    0.212485
1978/4/1    -0.006243
1978/5/1    0.951809
1978/6/1    0.626561
1978/7/1    -0.129841
1978/8/1    -0.606561
1978/9/1    -0.181909
1978/10/1   -0.430736
1978/11/1   -0.165507
1978/12/1   -0.469125
1979/1/1    -0.528549
1979/2/1    -0.590417
1979/3/1    -0.740736
1979/4/1    -0.762624
1979/5/1    -1.12163
1979/6/1    -0.753678
1979/7/1    -0.66998
1979/8/1    -0.075567
1979/9/1    0.177276
1979/10/1   -0.070139
1979/11/1   -0.37
1979/12/1   -0.135825
1980/1/1    -0.226083
1980/2/1    -0.348867
1980/3/1    -0.460338
1980/4/1    -0.601173
1980/5/1    -0.489264
1980/6/1    -0.586561
1980/7/1    -0.271988
1980/8/1    0.402247
1980/9/1    0.233698
1980/10/1   0.61497
1980/11/1   0.228449
1980/12/1   0.180278
1981/1/1    0.146799
1981/2/1    0.181968
1981/3/1    0.424513
1981/4/1    0.529861
1981/5/1    0.895726
1981/6/1    0.520258
1981/7/1    0.219801
1981/8/1    0.01841
1981/9/1    -0.209085
1981/10/1   -0.701531
1981/11/1   -0.168926
1981/12/1   -0.190378
1982/1/1    -0.259085
1982/2/1    0.104274
1982/3/1    -0.159284
1982/4/1    0.369602
1982/5/1    -0.334115
1982/6/1    -0.051412
1982/7/1    -0.001451
1982/8/1    -0.180318
1982/9/1    0.478449
1982/10/1   0.21994
1982/11/1   0.728728
1982/12/1   0.812505
1983/1/1    1.180875
1983/2/1    1.564334
1983/3/1    1.913221
1983/4/1    1.402664
1983/5/1    0.879344
1983/6/1    0.873141
1983/7/1    0.875805
1983/8/1    1.005388
1983/9/1    1.221312
1983/10/1   1.156501
1983/11/1   1.20499
1983/12/1   1.457992
1984/1/1    1.296978
1984/2/1    0.762565
1984/3/1    0.373936
1984/4/1    0.409801
1984/5/1    1.052763
1984/6/1    0.772087
1984/7/1    0.72495
1984/8/1    0.42332
1984/9/1    -0.063837
1984/10/1   -0.193579
1984/11/1   -0.54992
1984/12/1   -0.482863
1985/1/1    -0.406203
1985/2/1    -0.199801
1985/3/1    0.251133
1985/4/1    0.644573
1985/5/1    0.63666
1985/6/1    0.683678
1985/7/1    0.545408
1985/8/1    0.289225
1985/9/1    0.520895
1985/10/1   -0.402724
1985/11/1   -0.346223
1985/12/1   -0.471491
1986/1/1    -0.635288
1986/2/1    -0.669165
1986/3/1    -0.891312
1986/4/1    -0.555328
1986/5/1    -1.038946
1986/6/1    -0.971769
1986/7/1    -0.329483
1986/8/1    -0.649642
1986/9/1    -0.639264
1986/10/1   -0.408449
1986/11/1   -0.531829
1986/12/1   -0.783817
1987/1/1    -0.786103
1987/2/1    -0.995666
1987/3/1    -1.298807
1987/4/1    -1.456421
1987/5/1    -1.702366
1987/6/1    -1.215964
1987/7/1    -0.812664
1987/8/1    -0.768032
1987/9/1    -0.494115
1987/10/1   -0.996561
1987/11/1   -0.847515
1987/12/1   -0.933062
1988/1/1    -0.962724
1988/2/1    -0.72992
1988/3/1    -0.784573
1988/4/1    -0.938748
1988/5/1    -0.852704
1988/6/1    -1.420258
1988/7/1    -1.229443
1988/8/1    -0.624573
1988/9/1    -0.386004
1988/10/1   -0.469404
1988/11/1   -0.561352
1988/12/1   -0.699702
1989/1/1    -0.475706
1989/2/1    -0.431054
1989/3/1    -0.287952
1989/4/1    -0.247396
1989/5/1    -0.288907
1989/6/1    -0.312087
1989/7/1    -0.4834
1989/8/1    -0.699622
1989/9/1    -0.704573
1989/10/1   -0.09664
1989/11/1   -0.144274
1989/12/1   -0.073121
1990/1/1    0.240497
1990/2/1    0.644195
1990/3/1    1.143976
1990/4/1    1.163579
1990/5/1    1.575646
1990/6/1    1.271928
1990/7/1    0.879364
1990/8/1    0.000119
1990/9/1    0.101093
1990/10/1   0.162167
1990/11/1   0.193439
1990/12/1   0.056203
1991/1/1    0.351252
1991/2/1    0.153241
1991/3/1    0.12837
1991/4/1    0.024254
1991/5/1    -0.165348
1991/6/1    0.198211
1991/7/1    0.344871
1991/8/1    0.369463
1991/9/1    0.340278
1991/10/1   0.197435
1991/11/1   0.369443
1991/12/1   0.592227
1992/1/1    0.844811
1992/2/1    1.260199
1992/3/1    1.237157
1992/4/1    0.746322
1992/5/1    0.702286
1992/6/1    0.642406
1992/7/1    0.113221
1992/8/1    -0.696958
1992/9/1    -1.14493
1992/10/1   -0.703976
1992/11/1   -0.918569
1992/12/1   -0.742922
1993/1/1    -0.386143
1993/2/1    -0.014473
1993/3/1    -0.344513
1993/4/1    -0.404513
1993/5/1    -0.341034
1993/6/1    -0.166541
1993/7/1    0.179205
1993/8/1    0.947177
1993/9/1    0.828171
1993/10/1   0.715646
1993/11/1   0.521471
1993/12/1   0.200477
1994/1/1    -0.029543
1994/2/1    -0.015169
1994/3/1    0.487753
1994/4/1    -0.148628
1994/5/1    -0.102425
1994/6/1    0.414374
1994/7/1    -0.004811
1994/8/1    -0.237674
1994/9/1    0.092187
1994/10/1   0.277316
1994/11/1   0.610159
1994/12/1   0.952346
1995/1/1    1.084155
1995/2/1    1.273757
1995/3/1    0.683598
1995/4/1    0.23328
1995/5/1    0.212068
1995/6/1    0.520954
1995/7/1    0.490954
1995/8/1    0.502843
1995/9/1    0.530775
1995/10/1   0.415944
1995/11/1   0.60165
1995/12/1   0.557932
1996/1/1    0.472922
1996/2/1    0.401074
1996/3/1    0.99831
1996/4/1    0.835408
1996/5/1    0.984254
1996/6/1    0.580298
1996/7/1    1.183201
1996/8/1    0.68668
1996/9/1    0.397793
1996/10/1   0.096839
1996/11/1   0.388131
1996/12/1   0.163022
1997/1/1    0.408171
1997/2/1    0.677137
1997/3/1    1.002763
1997/4/1    1.3233
1997/5/1    0.773936
1997/6/1    0.690179
1997/7/1    0.864612
1997/8/1    0.219185
1997/9/1    0.479105
1997/10/1   0.173539
1997/11/1   -0.279821
1997/12/1   0.056223
1998/1/1    0.111372
1998/2/1    0.121889
1998/3/1    0.290577
1998/4/1    0.331849
1998/5/1    0.280358
1998/6/1    1.007078
1998/7/1    1.405388
1998/8/1    1.205944
1998/9/1    0.032048
1998/10/1   -0.089304
1998/11/1   -0.137137
1998/12/1   -0.2766
1999/1/1    -0.245944
1999/2/1    -0.592505
1999/3/1    -0.794493
1999/4/1    -0.45006
1999/5/1    0.121213
1999/6/1    -0.200736
1999/7/1    0.777038
1999/8/1    1.137575
1999/9/1    0.847535
1999/10/1   1.160915
1999/11/1   1.468827
1999/12/1   1.313479
2000/1/1    1.41326
2000/2/1    1.316402
2000/3/1    1.410557
2000/4/1    1.575507
2000/5/1    1.332565
2000/6/1    1.076342
2000/7/1    0.799821
2000/8/1    0.977654
2000/9/1    0.697276
2000/10/1   1.104394
2000/11/1   0.617376
2000/12/1   0.434592
2001/1/1    0.444672
2001/2/1    0.361113
2001/3/1    0.240795
2001/4/1    0.183598
2001/5/1    0.682346
2001/6/1    0.782684
2001/7/1    0.30668
2001/8/1    0.484433
2001/9/1    0.434732
2001/10/1   0.807256
2001/11/1   0.741551
2001/12/1   0.651889
2002/1/1    0.758211
2002/2/1    0.53835
2002/3/1    0.574871
2002/4/1    0.422306
2002/5/1    1.148926
2002/6/1    0.914891
2002/7/1    0.741133
2002/8/1    0.887157
2002/9/1    -0.250557
2002/10/1   -0.362783
2002/11/1   -0.425706
2002/12/1   -0.175149
2003/1/1    0.016421
2003/2/1    -0.24505
2003/3/1    -0.384374
2003/4/1    -0.611869
2003/5/1    -0.238191
2003/6/1    0.068012
2003/7/1    -0.368111
2003/8/1    -0.44831
2003/9/1    -0.725308
2003/10/1   -1.029165
2003/11/1   -1.317694
2003/12/1   -0.860298
2004/1/1    -0.795348
2004/2/1    -0.852962
2004/3/1    -0.801034
2004/4/1    -0.216958
2004/5/1    0.206103
2004/6/1    -0.225865
2004/7/1    -0.105606
2004/8/1    -0.43827
2004/9/1    -0.35326
2004/10/1   -0.654235
2004/11/1   -0.546759
2004/12/1   -0.683539
2005/1/1    -0.650298
2005/2/1    -0.649046
2005/3/1    -0.234155
2005/4/1    -0.586899
2005/5/1    -0.955268
2005/6/1    -0.750815
2005/7/1    -0.927773
2005/8/1    -0.60833
2005/9/1    -1.323738
2005/10/1   -1.216004
2005/11/1   -1.294056
2005/12/1   -1.233757
2006/1/1    -1.31668
2006/2/1    -0.829344
2006/3/1    -0.816282
2006/4/1    -0.83994
2006/5/1    -0.594493
2006/6/1    -0.890378
2006/7/1    -1.27006
2006/8/1    -1.833141
2006/9/1    -1.850239
2006/10/1   -1.177396
2006/11/1   -1.166958
2006/12/1   -1.177833
2007/1/1    -1.03825
2007/2/1    -0.794453
2007/3/1    -1.029602
2007/4/1    -0.525626
2007/5/1    -0.414592
2007/6/1    -0.712366
2007/7/1    -0.054076
2007/8/1    -0.387674
2007/9/1    -0.44002
2007/10/1   -0.699264
2007/11/1   -0.856481
2007/12/1   -0.772763
2008/1/1    -0.492744
2008/2/1    -0.256083
2008/3/1    -0.01507
2008/4/1    -0.164215
2008/5/1    0.000895
2008/6/1    -0.067555
2008/7/1    -0.077336
2008/8/1    0.25008
2008/9/1    -0.04503
2008/10/1   0.196362
2008/11/1   0.499245
2008/12/1   0.014195
2009/1/1    -0.174076
2009/2/1    -0.472664
2009/3/1    -0.569324
2009/4/1    -0.16992
2009/5/1    -0.489205
2009/6/1    -0.484732
2009/7/1    -0.659702
2009/8/1    -0.776203
2009/9/1    -1.454016
2009/10/1   -1.757396
2009/11/1   -1.93163
2009/12/1   -2.081988
2010/1/1    -2.092386
2010/2/1    -2.366461
2010/3/1    -2.2467
2010/4/1    -2.017475
2010/5/1    -2.029742
2010/6/1    -1.694751
2010/7/1    -1.609264
2010/8/1    -1.663519
2010/9/1    -1.698867
2010/10/1   -1.3333
2010/11/1   -1.329066
2010/12/1   -1.08338
2011/1/1    -0.87167
2011/2/1    -1.100775
2011/3/1    -0.826581
2011/4/1    -1.081153
2011/5/1    -1.190358
2011/6/1    -1.247038
2011/7/1    -1.586362
2011/8/1    -2.426799
2011/9/1    -2.176799
2011/10/1   -1.765547
2011/11/1   -1.745328
2011/12/1   -1.721531
2012/1/1    -1.267873
2012/2/1    -1.404712
2012/3/1    -1.377276
2012/4/1    -1.549563
2012/5/1    -1.532545
2012/6/1    -1.145368
2012/7/1    -0.754851
2012/8/1    -1.233121
2012/9/1    -1.077575
2012/10/1   -1.308867
2012/11/1   -1.355288
2012/12/1   -1.553519
2013/1/1    -1.618966
2013/2/1    -1.790736
2013/3/1    -1.720716
2013/4/1    -1.599046
2013/5/1    -1.073777
2013/6/1    -1.41672
2013/7/1    -1.413738
2013/8/1    -1.772843
2013/9/1    -1.363996
2013/10/1   -1.246859
2013/11/1   -1.178569
2013/12/1   -0.895845
2014/1/1    -1.141849
2014/2/1    -1.016839
2014/3/1    -0.734592
2014/4/1    -1.02994
2014/5/1    -1.818569
2014/6/1    -0.244791
2014/7/1    -0.051551
2014/8/1    0.58841
2014/9/1    0.654592
2014/10/1   0.270239
2014/11/1   0.258429
2014/12/1   0.14328
2015/1/1    0.390119
2015/2/1    0.024891
2015/3/1    -0.147455
2015/4/1    -0.018052
2015/5/1    -0.345606
2015/6/1    -0.030696
2015/7/1    0.013499
2015/8/1    0.461014
2015/9/1    0.928449
2015/10/1   0.82161
2015/11/1   0.71497
2015/12/1   1.373956
2016/1/1    1.689861
2016/2/1    1.736879
2016/3/1    1.698111
2016/4/1    2.255547
2016/5/1    2.332048
2016/6/1    2.674235
2016/7/1    2.398211
2016/8/1    1.94833
2016/9/1    1.812147
2016/10/1   1.679722
2016/11/1   1.859304
2016/12/1   1.806819

你可能感兴趣的:(R语言,干旱,正负折线图,动图,交互折线图)