如何才能有一个多行图的标题?我想要标题在第一行,然后在标题下面的一个段落来解释图表。我的尝试是:
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;发布于 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的人都应该能够正确地运行代码。
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;https://stackoverflow.com/questions/44838420
复制相似问题