楼主: fankaiqing
1630 0

[程序分享] The Auto-Calculator of the Graphic y-axis Tickvaluelist for Data Visualization [推广有奖]

已卖:4072份资源

教授

39%

还不是VIP/贵宾

-

威望
0
论坛币
53387 个
通用积分
54.0143
学术水平
132 点
热心指数
171 点
信用等级
107 点
经验
79714 点
帖子
991
精华
3
在线时间
701 小时
注册时间
2013-3-9
最后登录
2023-11-25

楼主
fankaiqing 在职认证  发表于 2018-5-19 10:57:19 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
这对于大规模生成成千上万张图的需要各种各样y轴值的SAS procedure特别极其方便。

When we plot graphics using SAS PROC TEMPLATE or PROC GPLOT or other procedures, we need to decide the x-axis and y-axis tick-value list. However when we plot hundreds or thousands line, bar graphics using SAS, how could we automatically calculate the y-axis tick-values is a huge challenge. My sub-engine can automatically calculate and provide nice y-axis tick-values for sets of minimum and maximum values. Once you decide the minimum and maximum values among a set of numbers, you can use this sub-engine to automatically calculate your x-axis and y-axis tick-values including yaxisopts tickvaluelist, yaxisopts tickvalueformat, barchart statement barlabelformat, referenceline  curvelabel, xaxisopts tickdisplaylist and xaxisopts tickvaluelist, and more when you use PROC TEMPLATE, PROC GPLOT or other procedures.

Here are the features:
1, the increment values are 1, 1.25, 2, 2.5, 5, 10 … and their … 0.0001, 0.001, 0.01, 1, 10, 100, 1000 … times; it is easy to count with mind only.
2, the number of grids are between 6 and 15, we can make this number smaller if need;
3, the gaps between maximum value and the upper-band are no more than 2 or 3 times of increment values;
4, the gaps between minimum value and the low-band are no more than 2 or 3 times of increment values except that the low_band is 0;
5, the y-axis tick-values are always including 0 value;
6, the biggest and smallest values are always covered by the up and low bands;
7, This calculator will automatically calculate and define the parameters of yaxisopts origin, yaxisopts viewmin, yaxisopts tickvaluelist, yaxisopts tickvalueformat, barchart statement barlabelformat, referenceline  curvelabel, xaxisopts tickdisplaylist and xaxisopts tickvaluelist.
In the calculator engine, we call them as
%GLOBAL ytickvaluelist_&page._&postn
                     ytickdisplaylist_&page._&postn  (you can add it into the engine by yourself)
                     xtickvaluelist_&page._&postn  
                     xtickdisplaylist_&page._&postn
                     curvelabel_&page._&postn  
                     tickvalueformat_&page._&postn
                     origin_&page._&postn
                     xtickvaluelist_&page._&postn  
                     xtickdisplaylist_&page._&postn   ;

8, the tickvalueformat_&page._&postn will make all values in the image with same format, please see the first graphics.


Auto-calculator of the graphic yaxis tickvalues for SAS GRAPHICS II.pdf (394.27 KB) Auto-calculator of the graphic yaxis tickvalues for GRAPHICS II.pptx (1.73 MB) Auto-calculator of the graphic yaxis tickvalues for GRAPHICS II.docx (410.71 KB)
二维码

扫码加我 拉你入群

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

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

关键词:Visualization Visual Graph value list

fankaiqing

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-2-4 03:46