全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
4387 3
2015-11-02
悬赏 30 个论坛币 已解决
先讲下数据结构。纵坐标为药物浓度concn[0-250],横坐标为时间days[0-100]。
要画半对数图,其中纵坐标浓度要用4 40 400(三者之间是等距的)。
小弟尝试用sgplot画。
yaxis type=log logbase=10 logstyle=logexpand
日志报错,查帮助选项只用于xaxis。
于是换sgpanel。生成的纵坐标是10 50 100,跟预期不符,不知怎么设置参数。
请大神帮忙解答,小弟感激不尽!
数据集
复制代码




最佳答案

johnpark1 查看完整内容

I usually use gplot. In this case I'd try the following axis definition: Axis logbase=10 order=(4 40 400). Proc gplot .... ; Plot .... / yaxis =axis1; Run;
二维码

扫码加我 拉你入群

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

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

全部回复
2015-11-2 13:55:38
I usually use gplot. In this case I'd try the following axis definition:

Axis logbase=10 order=(4 40 400).

Proc gplot .... ;
Plot .... / yaxis =axis1;
Run;

二维码

扫码加我 拉你入群

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

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

2015-11-2 14:02:43
sgplot中yaxis可以用type=log等选项,但是纵坐标仍然是10 50 100
二维码

扫码加我 拉你入群

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

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

2015-11-3 15:39:11
johnpark1 发表于 2015-11-3 12:55
I usually use gplot. In this case I'd try the following axis definition:

Axis logbase=10 order=(4 ...
Thanks for your suggestion.

Actually, there is no 4*10E(0 1 2 3). SAS support logbase=10 just as (1 10 100 1000).

I try to use max=1000 in yaxis while it works.

Now here is another problem .

A graph has more than eighty group.I plot such many series but there if no space to export so many legends. Which option can solve this problem ?  
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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