全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
4551 6
2011-05-03
我想把figure中的reference line,讓red circles標示的部份可以消失,不知道GPLOT的程序是否可以達到這樣的效果嗎?
gplot的程序如下:

proc gplot data=lambda3;
title "Mean quailty adjusted survival time using IPW";
plot a*lambda/
    haxis=axis1 href=5181.4 lhref=2
    vaxis=axis2 vref=0.95 0.5 lvref=2
    ;
   
    axis1 label=("WTP")
        value=( color=blue )
        minor=none
        reflabel= ("Upper limit for R" color=blue)
        order=(1000 to 7000 by 500);
        
    axis2 label= ( "Probability")
        value=( color=red )
        minor=none
        reflabel=( t=1 "Pr=0.95" t=2 "Pr=0.5" color=green justify=center position=bottom)
        order= (0 to 1 by 0.05);
run;
quit;
附件列表
圖片 4_n.png

原图尺寸 34.87 KB

圖片 4_n.png

二维码

扫码加我 拉你入群

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

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

全部回复
2011-5-4 14:09:21
quintinyang 发表于 2011-5-3 17:06
我想把figure中的reference line,讓red circles標示的部份可以消失,不知道GPLOT的程序是否可以達到這樣的效果嗎?
gplot的程序如下:

proc gplot data=lambda3;
title "Mean quailty adjusted survival time using IPW";
plot a*lambda/
    haxis=axis1 href=5181.4 lhref=2
    vaxis=axis2 vref=0.95 0.5 lvref=2
    ;
   
    axis1 label=("WTP")
        value=( color=blue )
        minor=none
        reflabel= ("Upper limit for R" color=blue)
        order=(1000 to 7000 by 500);
        
    axis2 label= ( "Probability")
        value=( color=red )
        minor=none
        reflabel=( t=1 "Pr=0.95" t=2 "Pr=0.5" color=green justify=center position=bottom)
        order= (0 to 1 by 0.05);
run;
quit;
I`m not quite sure if SAS could do that ....but why not change the order - range of x - axis here :

axis1 label=("WTP")
        value=( color=blue )
        minor=none
        reflabel= ("Upper limit for R" color=blue)
        order=(1000 to 7000 by 500);

Maybe change the order from 1000 to 6000 ? so the lag part won`t show in your graph.
二维码

扫码加我 拉你入群

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

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

2011-5-4 23:51:54
请问您这个横纵轴的数字的大小是怎么设置的啊?
二维码

扫码加我 拉你入群

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

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

2011-5-5 09:37:06
烈女乖乖 发表于 2011-5-4 23:51
请问您这个横纵轴的数字的大小是怎么设置的啊?
axis2 label= ( "Probability")
        value=( color=red )
        minor=none
        reflabel=( t=1 "Pr=0.95" t=2 "Pr=0.5" color=green justify=center position=bottom)
        order= (0 to 1 by 0.05);

See the part of Order ( 0 to 1 by 0.05) which means your major tick would be from 0 to 1 and minor duration would be by 0.05.:-)

Hope that helps :-)
二维码

扫码加我 拉你入群

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

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

2011-5-5 13:07:17
你好
axis1 label=('RCA');
axis2 label=('density');

proc gplot data=m;
plot densitym00*rcam00=1 densitym08*rcam08=2/overlay haxis=axis1 vaxis=axis2;
symbol1 interpol=join v=none i=join c=red l=1;
symbol2 interpol=join v=none i=join c=blue l=1;
run;


就是我这段程序,做出来的图的横纵坐标上的数字都是默认的,太大了,就是看起来不合理呢!
是不是应该加上什么语句来修改一下,,,谢谢了






4# qiuya
二维码

扫码加我 拉你入群

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

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

2011-5-6 10:02:07
5# 烈女乖乖
像你楼上说的,加上个ORDER
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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