全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1432 1
2016-06-18
我我想把时序图的横坐标改成1952-1988年怎么办呢?求各位大神相助
data example1;
input x@@;
time=intnx('month','01jan1952'd,_n_-1);
format time date;
cards;
100.0         101.6         103.3         111.5         116.5         120.1         120.3
100.6         83.6         84.7         88.7         98.9         111.9         122.9
131.9         134.2         131.6         132.2         139.8         142.0         140.5
153.1         159.2         162.3         159.1         155.1         161.2         171.5
168.4         180.4         201.6         218.7         247.0         253.7         261.4
273.2         279.4                                        
proc gplot data=example1;
plot x*time=1;
symbol1 c=black v=star i=join;
run;

这这是我的代码,不知道怎么改 QQ截图20000118133746.png
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-6-22 17:50:15
你的time格式本身没有调整对啊。然后再定义一个坐标就可以了:
data example1;
input x@@;
time=intnx('month','01jan1952'd,_n_-1);
format time date7.;
cards;
100.0         101.6         103.3         111.5         116.5         120.1         120.3
100.6         83.6         84.7         88.7         98.9         111.9         122.9
131.9         134.2         131.6         132.2         139.8         142.0         140.5
153.1         159.2         162.3         159.1         155.1         161.2         171.5
168.4         180.4         201.6         218.7         247.0         253.7         261.4
273.2         279.4                                         
axis1 order=('01jan52'd to '01jan88'd by year)  ;                                                                                    
      label=none;
proc gplot data=example1;
plot x*time=1 / haxis=axis1 ;
symbol1 c=black v=star i=join;
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群