2017-06-30 28 views
-1

複数行のグラフのタイトルはどのようにすることができますか?私は最初の行にタイトルをつけて、次にそのタイトルの下の段落をグラフの説明に付ける必要があります。 私の試みは次のとおりです。proc sgplot複数行タイトル

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; 
+1

するTry TITLE1 TITLE2と – Reeza

+0

私はTITLE1を試してみましたが、それが唯一のタイトル1の値を取り、あなたはTITLE1 TITLE2とを必要とする理由であるタイトル – duckman

+0

を無視します。タイトルはtitle1と同じで、上書きします。 – Reeza

答えて

1

タイトルとタイトル1は同じコマンドです。設計上、新しい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; 
関連する問題