<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Line Chart for monthly data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329998#M73924</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39704"&gt;@MAC1430&lt;/a&gt; wrote:&lt;BR /&gt;Thanks for it. But I am using around 1100 observations and its not that clear to view it. Furthermore, it leaves some pace on left and right side f (inside) the graph,which makes it even smaller.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You should clarify how "its not that clear to view".&amp;nbsp; is the issue that your Y values are so close together that you cannot see much difference, which can happen if one series has a significantly different range. If tha is the case almost anything that overlays all 4 series with have a similar issue. Or is that your lines are thick enough, the wrong color or something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The horizontal axis by default will round you values to pick a "nice" left and right boundary which may have been multiples of 1000 or 5000 days or so. With GPLOT you would use an AXIS statement with the ORDER option to specify the values to display as tick marks which would also set the values of the left and right display as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75234"&gt;@YiqunDai&lt;/a&gt; with the Y axis.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2017 03:28:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-02-05T03:28:26Z</dc:date>
    <item>
      <title>Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329939#M73893</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me to draw a nice clear chart using four variables on yaxis (SMB HML RM RF) and date on xaxis? I need a line chart for almost 1000 months. I tried and teh oen I got does not seem clear. Please find the sampel data for the line chart, its only around 59 observations in it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards truncover;
input date : yymmn6. SMB HML RM RF ;
format Date yymmn6.;
cards;
192607 2.96 -2.30 -2.87 0.22
192608 2.64 -1.40 4.19 0.25
192609 0.36 -1.32 0.01 0.23
192610 -3.24 0.04 0.51 0.32
192611 2.53 -0.20 -0.35 0.31
192612 2.62 -0.04 -0.02 0.28
192701 -0.06 -0.56 4.83 0.25
192702 4.18 -0.10 3.17 0.26
192703 0.13 -1.60 -2.67 0.30
192704 0.46 0.43 0.60 0.25
192705 5.44 1.41 4.93 0.30
192706 -2.34 0.47 -1.53 0.26
192707 7.26 -3.23 -1.16 0.30
192708 1.97 -0.72 -3.69 0.28
192709 4.76 -3.57 -0.71 0.21
192710 -4.31 2.13 -4.33 0.25
192711 6.58 2.76 -0.31 0.21
192712 2.09 0.93 -1.06 0.22
192801 -0.68 4.25 -0.72 0.25
192802 -1.70 -2.03 -0.69 0.33
192803 8.81 -0.26 -1.20 0.29
192804 4.23 3.82 3.67 0.22
192805 1.52 2.98 -3.46 0.32
192806 -4.85 -3.50 -0.06 0.31
192807 0.62 -1.35 -0.47 0.32
192808 6.68 -2.07 -2.11 0.32
192809 2.88 2.18 0.76 0.27
192810 1.33 2.27 -2.26 0.41
192811 11.81 -1.81 2.80 0.38
192812 0.36 -0.85 -0.60 0.06
192901 4.66 -3.55 -1.21 0.34
192902 -0.34 -0.39 1.68 0.36
192903 -0.89 -4.78 1.56 0.34
192904 1.43 -0.99 0.61 0.36
192905 -6.39 -5.46 -1.57 0.44
192906 9.70 -2.17 -2.76 0.52
192907 4.46 -3.87 2.67 0.33
192908 8.18 -9.51 0.07 0.40
192909 -5.47 1.17 -0.63 0.35
192910 -20.12 -4.08 7.85 0.46
192911 -12.74 -1.91 5.33 0.37
192912 1.33 -4.20 -0.59 0.37
193001 5.61 3.58 -1.01 0.14
193002 2.50 0.12 0.39 0.30
193003 7.10 3.44 0.15 0.35
193004 -2.06 -0.17 -0.84 0.21
193005 -1.66 -2.04 -0.63 0.26
193006 -16.27 -3.22 2.00 0.27
193007 4.12 -0.37 -1.56 0.20
193008 0.30 -2.22 -0.78 0.09
193009 -12.75 -2.22 -5.27 0.22
193010 -8.78 -0.10 -1.35 0.09
193011 -3.04 2.21 -3.53 0.13
193012 -7.83 -4.68 -5.39 0.14
193101 6.24 3.81 7.21 0.15
193102 10.88 3.39 1.60 0.04
193103 -6.43 3.07 -3.65 0.13
193104 -9.98 -4.61 -3.92 0.08
193105 -13.24 5.16 -6.57 0.09
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks a lot for reading it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MAC&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 06:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329939#M73893</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-02-04T06:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329993#M73919</link>
      <description>&lt;P&gt;Hi, I'm not sure if you tried PROC GPLOT and were satisfied by the line plot exported. A sample code is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Define the title of the plot */
title1 "Line Plot";

/* Define the axis of the plot */
axis1 order = (-30 to 20 by 5) label = (a=90 'Y axis') minor=none;
axis2 label=('Date') minor = none;

/* Define the symbol characteristics */
symbol1 interpol=join color=blue line = 1 height=14pt font='Arial';                                                          
symbol2 interpol=join color=red  line = 3 height=14pt font='Arial';                                                       
symbol3 interpol=join color=green line = 8 height=14pt font='Arial';                                                         
symbol4 interpol=join color=black line = 42 height=14pt font='Arial';

/* Add the legend */
legend1 label = (' ') frame; 

/* save the plot in a pdf file */
ods pdf file = "&amp;amp;path\plot1.pdf";

proc gplot data = have;
plot (SMB HML RM RF)*date / vaxis = axis1 haxis=axis2 overlay legend = legend1;
format date yymon7.;
run;

ods pdf close;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7103iDE6D4AEBDDDDB05D/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="gplot16.png" title="gplot16.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 00:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329993#M73919</guid>
      <dc:creator>YiqunDai</dc:creator>
      <dc:date>2017-02-05T00:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329994#M73920</link>
      <description>Thanks for it. But I am using around 1100 observations and its not that clear to view it. Furthermore, it leaves some pace on left and right side f (inside) the graph,which makes it even smaller.</description>
      <pubDate>Sun, 05 Feb 2017 01:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329994#M73920</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-02-05T01:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329998#M73924</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39704"&gt;@MAC1430&lt;/a&gt; wrote:&lt;BR /&gt;Thanks for it. But I am using around 1100 observations and its not that clear to view it. Furthermore, it leaves some pace on left and right side f (inside) the graph,which makes it even smaller.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You should clarify how "its not that clear to view".&amp;nbsp; is the issue that your Y values are so close together that you cannot see much difference, which can happen if one series has a significantly different range. If tha is the case almost anything that overlays all 4 series with have a similar issue. Or is that your lines are thick enough, the wrong color or something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The horizontal axis by default will round you values to pick a "nice" left and right boundary which may have been multiples of 1000 or 5000 days or so. With GPLOT you would use an AXIS statement with the ORDER option to specify the values to display as tick marks which would also set the values of the left and right display as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75234"&gt;@YiqunDai&lt;/a&gt; with the Y axis.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 03:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/329998#M73924</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-05T03:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330001#M73925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;ballardw,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. Yes, y values are quite closeto eachother which makes it difficult to see any specific difference. IF I reduce the observations then its easy to see any difference but the problem is that I need to provide it for the full sample. I will appreciate if you cna help me with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thansk in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheema&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 03:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330001#M73925</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-02-05T03:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330003#M73927</link>
      <description>&lt;P&gt;What about using goptions to set the size of the graph, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;goptions hsize = 80 vsize = 4;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 04:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330003#M73927</guid>
      <dc:creator>YiqunDai</dc:creator>
      <dc:date>2017-02-05T04:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330008#M73932</link>
      <description>&lt;P&gt;Thanks, thats fine. Can you please help me with one more thing about this graph, I want to make the black color for teh grapgh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MAC&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 05:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330008#M73932</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-02-05T05:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330009#M73933</link>
      <description>&lt;P&gt;You mean you want the colors of all lines to be black? Just set the colors in "symbol", for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;symbol1 interpol=join color=black line = 1 height=14pt font='Arial';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 05:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330009#M73933</guid>
      <dc:creator>YiqunDai</dc:creator>
      <dc:date>2017-02-05T05:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330010#M73934</link>
      <description>Sorry, I want background color in black. The display color in black.</description>
      <pubDate>Sun, 05 Feb 2017 06:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330010#M73934</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-02-05T06:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330030#M73945</link>
      <description>&lt;P&gt;You could set the background color in goptions using cback option like&lt;/P&gt;&lt;PRE&gt;goptions cback = black;&lt;/PRE&gt;&lt;P&gt;But I think you may also want to set the color of the graph frame, using cframe option in proc gplot, like&lt;/P&gt;&lt;PRE&gt;proc gplot data = have;
plot (SMB HML RM RF)*date / cframe = black;
run;&lt;/PRE&gt;&lt;P&gt;If you want let the color of all text and axis be white, use ctext option in goptions and color option in axis, like&lt;/P&gt;&lt;PRE&gt;goptions cback = black ctext = white;
axis1 color = white;&lt;/PRE&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 15:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330030#M73945</guid>
      <dc:creator>YiqunDai</dc:creator>
      <dc:date>2017-02-05T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart for monthly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330050#M73956</link>
      <description>Thanks for it.</description>
      <pubDate>Sun, 05 Feb 2017 21:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-Chart-for-monthly-data/m-p/330050#M73956</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-02-05T21:20:45Z</dc:date>
    </item>
  </channel>
</rss>

