proc sgplot 多行标题

proc sgplot multiple line title

图表的标题怎么可以有多条线?我想在第一行加上标题,然后在该标题下面加一段来解释图表。 我的尝试是:

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;

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

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;