楼主: quintinyang
4614 6

[原创博文] 有關SAS Gplot程序畫圖的問題 [推广有奖]

  • 0关注
  • 0粉丝

小学生

57%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
43 点
帖子
3
精华
0
在线时间
9 小时
注册时间
2010-11-19
最后登录
2016-6-18

楼主
quintinyang 发表于 2011-5-3 17:06:55 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我想把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;
二维码

扫码加我 拉你入群

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

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

关键词:gplot plot GPL PSA Probability reference adjusted survival figure color

圖片 4_n.png (34.87 KB)

圖片 4_n.png

沙发
qiuya 发表于 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
请问您这个横纵轴的数字的大小是怎么设置的啊?

板凳
qiuya 发表于 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

地板
zhaoping603 发表于 2011-5-6 10:02:07
5# 烈女乖乖
像你楼上说的,加上个ORDER

7
sas_user 发表于 2011-5-6 12:41:39
goptions htext= 是调整坐标轴上字的大小,默认是1,在0-1之间。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 00:32