全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2178 1
2011-10-31
图片脚本错误点不出来了。
是这样的,图片有蓝色红色的是结果正常的结果,图片只有蓝色的是结果异常的结果。
产生这2组图片的程序一模一样,如下面所示,唯一的不同是样本数量。正常的组数量是5000,异常的是8000.
似乎一旦样本超过某个数量PBSPLINE就不能正确分类显示多条样条线了。我猜测应该是可以在options或者ods中设置。
请高手指教,非常感谢!
ods path sashelp.tmplmst(read) sasuser.templat(update);
proc template;
  define style XY;
     parent=Styles.Default;
  class GraphFonts /
   'GraphDataFont' = ("<sans-serif>, <MTsans-serif>",14pt)
        'GraphValueFont' = ("<sans-serif>, <MTsans-serif>",14pt)
        'GraphLabelFont' = ("<sans-serif>, <MTsans-serif>",14pt,bold)
        'GraphFootnoteFont' = ("<sans-serif>, <MTsans-serif>",12pt)
        'GraphTitleFont' = ("<sans-serif>, <MTsans-serif>",16pt,bold);
  class GraphColors /
   'ggrid' = cx808080;
  end;
run;
ods listing close;
ods graphics on / imagefmt = JPEG
       imagename = "ABC"
       antialias = off
       width = 7.5in
       height = 5.5in;
ods html gpath = "&_GraphPath"
    style = XY;
proc sgplot data = _raw noautolegend;
    pbspline x = &_X y = &_Y / group = &_by
   lineattrs = (pattern = solid thickness = 3)
   markerattrs = (color = grey symbol = CircleFilled size = 3pt) name = 'Y1';
  keylegend "Y1" / position = bottom across =6;
  xaxis values = (&_xaxis) grid;
  yaxis values = (&_yaxis) grid;
   title "&_Y vs. &_X";
run;
    ods html close;
ods graphics off;
ods trace off;
ods listing;


normal.jpg abnormal.jpg
二维码

扫码加我 拉你入群

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

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

全部回复
2011-11-1 10:15:38
如上图所示,当样本数量少的时候,能正确分为红蓝2组,但样本数量多了,就只能是一组了。
但所用的程序都是一样的。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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