楼主: webgu
27728 4

[原创博文] 请问:plot 、gplot 、 sgplot有何区别 [推广有奖]

贵宾

学科带头人

95%

还不是VIP/贵宾

-

TA的文库  其他...

Python与统计

SAS与统计

威望
2
论坛币
102554 个
通用积分
3.6187
学术水平
475 点
热心指数
493 点
信用等级
434 点
经验
62369 点
帖子
1555
精华
4
在线时间
2201 小时
注册时间
2009-5-4
最后登录
2024-4-23

初级学术勋章 初级热心勋章 初级信用勋章 中级学术勋章 中级热心勋章 中级信用勋章

楼主
webgu 发表于 2010-4-23 19:47:08 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
在sas过程中,plot  、gplot 、 sgplot这三个过程有何区别和联系?没弄清楚,感觉这块很混乱!
二维码

扫码加我 拉你入群

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

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

关键词:sgplot gplot plot GPL

回帖推荐

bobguy 发表于4楼  查看完整内容

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 an ...

本帖被以下文库推荐

沙发
crackman 发表于 2010-4-23 20:17:41
请看HELP OR MANUAL

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

板凳
bobguy 发表于 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;
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

报纸
txyw 在职认证  发表于 2014-5-16 09:09:59
sgplot是在SAS9.2版本及以上才能实现的高分辨率图,是SAS9.13后新加的功能
天下有我!天下有你!天下有我和你!

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

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