全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
27638 4
2010-04-23
在sas过程中,plot  、gplot 、 sgplot这三个过程有何区别和联系?没弄清楚,感觉这块很混乱!
二维码

扫码加我 拉你入群

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

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

全部回复
2010-4-23 20:17:41
请看HELP OR MANUAL
二维码

扫码加我 拉你入群

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

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

2011-7-11 18:52:36
三者的主要区别就在于所绘图形的精度存在明显差异,其它还存在性能上的差别、用法上的难易程度不同
二维码

扫码加我 拉你入群

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

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

2011-7-12 10:43:35
webgu 发表于 2010-4-23 19:47
在sas过程中,plot  、gplot 、 sgplot这三个过程有何区别和联系?没弄清楚,感觉这块很混乱!
The plot is a text base version, gplot is graphic version. You may overlay multiple graphes in a single graph.

Sgplot does much more when you have multiple graphes to plot.


Here is from online help.

Overview
The SGPLOT procedure creates one or more plots and overlays them on a single set of axes. You can use the SGPLOT procedure to create statistical graphics such as histograms and regression plots, in addition to simple graphics such as scatter plots and line plots. Statements and options enable you to control the appearance of your graph and add additional features such as legends and reference lines.

The SGPLOT procedure can create a wide variety of plot types, and can overlay plots together to produce many different types of graphs. Examples of Graphs that Can Be Generated by the SGPLOT Procedure contains some examples of graphs that the SGPLOT procedure can create.

Examples of Graphs that Can Be Generated by the SGPLOT Procedure  The following code creates an ellipse plot:
proc sgplot data=sashelp.class;
  scatter x=height y=weight;
  ellipse x=height y=weight;
run;


The following code creates a horizontal box plot:
proc sgplot data=sashelp.cars;
  hbox weight / category=origin;
run;


The following code creates a graph with two series plots:
proc sgplot data=sashelp.electric(
     where=(customer="Residential"));
  xaxis type=discrete;
  series x=year y=coal;
  series x=year y=naturalgas / y2axis;
run;


The following code creates a graph with a histogram, a normal density curve, and a kernel density curve:
proc sgplot data=sashelp.class;
  histogram height;
  density height;
  density height / type=kernel;
run;


The following code creates a graph with two bar charts:
proc sgplot data=sashelp.prdsale;
  yaxis label="Sales" min=200000;
  vbar country / response=predict;
  vbar country / response=actual
                  barwidth=0.5
                  transparency=0.2;
run;
二维码

扫码加我 拉你入群

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

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

2014-5-16 09:09:59
sgplot是在SAS9.2版本及以上才能实现的高分辨率图,是SAS9.13后新加的功能
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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