楼主: calsunny
4703 5

请教一个Proc sgplot 作图的问题,谢谢! [推广有奖]

  • 2关注
  • 5粉丝

讲师

84%

还不是VIP/贵宾

-

威望
0
论坛币
3460 个
通用积分
12.8619
学术水平
2 点
热心指数
5 点
信用等级
1 点
经验
1653 点
帖子
468
精华
0
在线时间
732 小时
注册时间
2007-4-3
最后登录
2019-12-3

楼主
calsunny 发表于 2015-5-2 10:24:05 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
如果我有个程序是这样的:
proc sgplot data=aa;
by year;
scatter x=xx y=yy/group=zz;
run;

请问我如果设置group的颜色,比如对于每个Year的图, group=1 的时候是红色, group=2的时候是蓝色。
如果不自己设置颜色,对于不同年份而言,有时候group=1 的时候是红色,有时候group=2 的时候是红色。自己倒腾了好长时间也没有弄出来,特来请教。谢谢了。
二维码

扫码加我 拉你入群

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

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

关键词:sgplot gplot plot GPL ROC 程序

沙发
calsunny 发表于 2015-5-3 09:41:56
继续求大牛们帮忙

藤椅
jingju11 发表于 2015-5-4 13:14:36
First of all, you need to tell the colors you need in your plot. More than that, For your case, BY statement may complicate the situation since each BY may not have equal levels of group variable. I had an example in my blog. You can either google %modStyle or visit my blog to figure out your question.

JingJu

板凳
jingju11 发表于 2015-5-5 00:24:51
jingju11 发表于 2015-5-4 13:14
First of all, you need to tell the colors you need in your plot. More than that, For your case, BY s ...
to followup, I have made my blog updated on this thread

JingJu

报纸
calsunny 发表于 2015-5-5 22:17:13
jingju11 发表于 2015-5-5 00:24
to followup, I have made my blog updated on this thread

JingJu
Thank you very much. I will let you know whether I can get it or not after I read your post.

地板
calsunny 发表于 2015-5-6 06:43:41
To Jingju,

Your code meets my needs. Thank you so much.

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

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