首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >程序sgplot多行标题

程序sgplot多行标题
EN

Stack Overflow用户
提问于 2017-06-30 04:05:43
回答 1查看 2.3K关注 0票数 0

如何才能有一个多行图的标题?我想要标题在第一行,然后在标题下面的一个段落来解释图表。我的尝试是:

代码语言:javascript
复制
proc sgplot data= maindata.small_medium_big_firms;
    title "Number of big, medium and small firms" 
    title1 " this is to explain the graph .........";
    series x=year y=group_1/lineattrs=(color=red) legendlabel= "small";
    series x=year y=group_2/lineattrs=(color=blue) legendlabel= "medium";
    series x=year y=group_3/lineattrs=(color=black) legendlabel= "big";
    YAXIS LABEL = 'Number of firms';
    XAXIS LABEL = 'Year';
run;
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-07-03 00:32:27

Title和Title1是同一个命令。按照设计,如果您提交了一个新的标题语句,它将覆盖相同数字和更高数字的任何其他标题语句。

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1ukd9sqgqiwwhn1mrx4c1rbse1j.htm

这使用SASHELP数据集来运行,因此任何拥有SAS的人都应该能够正确地运行代码。

代码语言:javascript
复制
proc sgplot data= sashelp.stocks;
    title1 "My Title - Title1" ;
    title2 "Other Text - title2";

    where stock='IBM';
    series x=date y=open/lineattrs=(color=red) legendlabel= "Open";
    series x=date y=close/lineattrs=(color=blue) legendlabel= "Close";
    series x=date y=high/lineattrs=(color=black) legendlabel= "High";
    YAXIS LABEL = 'Stock Price';
    XAXIS LABEL = 'Date';
run;
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44838420

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档