library(openxlsx)
library(tidyverse)
library(readxl)
library(plotly)
library(ggcorrplot)
library(stats)
library(forecast)
<-read.xlsx("C:/Users/asus/Desktop/data.xlsx", sheet = "价格指数数据")
datatable datatable
年份 总指数 燃料、动力类 黑色金属材料类 有色金属材料及电线类 化工原料类
1 1989 126.4 124.7 130.3 127.6 124.4
2 1990 105.6 110.7 103.9 97.2 95.6
3 1991 109.1 112.9 112.5 101.2 99.8
4 1992 111.0 116.4 114.5 112.4 102.6
5 1993 135.1 136.7 174.1 115.8 114.3
6 1994 118.2 118.0 103.8 110.7 111.7
7 1995 115.3 108.7 98.2 128.3 127.2
8 1996 103.9 110.2 99.3 92.4 98.0
9 1997 101.3 109.3 97.4 96.2 97.1
10 1998 95.8 99.1 95.1 88.3 93.6
11 1999 96.7 100.9 94.7 98.9 97.6
12 2000 105.1 115.4 100.9 110.3 105.6
13 2001 99.8 100.2 100.5 95.6 98.4
14 2002 97.7 100.1 98.2 96.5 97.5
15 2003 104.8 107.4 107.9 105.3 102.9
16 2004 111.4 109.7 120.4 120.1 108.9
17 2005 108.3 115.0 107.5 114.0 108.3
18 2006 106.0 111.9 98.3 130.8 102.1
19 2007 104.4 104.3 105.4 111.6 103.6
20 2008 110.5 120.6 118.4 98.6 105.2
21 2009 92.1 89.2 86.3 81.1 91.3
22 2010 109.6 116.3 106.6 122.2 107.0
23 2011 109.1 110.8 109.4 112.1 110.4
24 2012 98.2 100.9 92.9 94.5 96.1
25 2013 98.0 96.6 95.7 95.4 97.3
26 2014 97.8 97.1 94.6 96.1 98.3
27 2015 93.9 88.7 88.4 92.7 93.7
28 2016 98.0 95.6 97.7 97.9 97.6
29 2017 108.1 113.0 115.9 115.3 108.4
30 2018 104.1 107.1 106.1 103.9 104.6
31 2019 99.3 98.2 102.3 97.6 94.8
32 2020 97.7 91.6 100.5 99.8 92.7
33 2021 111.0 120.5 120.3 120.9 115.1
34 2022 106.1 120.9 96.4 105.4 106.5
35 2023 96.4 94.7 93.8 99.3 91.7
木材及纸浆类 建筑材料及非金属类 农副产品类 纺织原料类
1 111.4 122.7 128.9 128.5
2 99.4 115.2 107.8 107.4
3 105.6 101.2 106.8 108.9
4 102.0 118.8 103.4 100.5
5 128.6 140.9 112.2 107.1
6 115.1 114.3 148.3 139.6
7 115.8 102.6 143.1 123.6
8 101.9 102.5 114.7 94.5
9 100.9 99.7 102.0 94.7
10 96.7 98.6 94.5 94.3
11 100.4 98.8 89.8 96.8
12 99.8 101.5 99.9 102.4
13 100.4 98.6 101.2 99.7
14 98.7 98.2 95.7 97.1
15 100.3 99.7 106.7 101.4
16 102.8 105.1 114.2 104.7
17 103.5 103.1 101.7 102.4
18 102.6 101.9 104.3 102.9
19 102.7 103.0 106.1 101.4
20 105.2 109.5 107.5 103.1
21 95.8 101.1 97.0 98.8
22 103.0 103.8 110.4 106.7
23 104.6 108.4 115.6 112.7
24 100.1 99.7 100.2 99.1
25 99.6 98.7 101.6 99.9
26 99.4 99.8 99.4 98.9
27 99.3 95.9 97.7 97.8
28 99.7 97.6 100.1 99.7
29 106.2 108.6 101.5 104.0
30 105.4 110.5 99.6 102.2
31 97.5 104.2 102.8 99.3
32 98.1 100.5 105.4 96.8
33 105.6 105.5 104.4 105.0
34 104.5 103.1 105.1 105.0
35 96.9 94.1 97.8 97.0