<?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 How to change line thickness in GPLOT?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830079#M327984</link>
    <description>&lt;P&gt;Use Proc GPLOT generate the time-series plot below. Somehow the line thickness is too much, any way to slim it?!&lt;/P&gt;
&lt;P&gt;I tried the options whref/wvref, somehow get confused.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	proc gplot data=mydata;
	plot (var_y1a var_y1b)*ind/legend overlay WAUTOHREF=0.2;
	plot2 (var_y2)*ind/legend overlay noaxis;
	run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gplot54.png" style="width: 800px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74656i4F6A735735AED7A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="gplot54.png" alt="gplot54.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 14:05:43 GMT</pubDate>
    <dc:creator>hellohere</dc:creator>
    <dc:date>2022-08-24T14:05:43Z</dc:date>
    <item>
      <title>How to change line thickness in GPLOT?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830079#M327984</link>
      <description>&lt;P&gt;Use Proc GPLOT generate the time-series plot below. Somehow the line thickness is too much, any way to slim it?!&lt;/P&gt;
&lt;P&gt;I tried the options whref/wvref, somehow get confused.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	proc gplot data=mydata;
	plot (var_y1a var_y1b)*ind/legend overlay WAUTOHREF=0.2;
	plot2 (var_y2)*ind/legend overlay noaxis;
	run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gplot54.png" style="width: 800px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74656i4F6A735735AED7A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="gplot54.png" alt="gplot54.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830079#M327984</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-08-24T14:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change line thickness in GPLOT?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830081#M327986</link>
      <description>&lt;P&gt;You question has nothing to do with "line thickness" as you not plotting a "line" at all. That is the result of overlapping many + symbols close together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I would suggest moving to Proc SGPLOT as that is where many improvements to plotting in general have been made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Gplot the SYMBOL settings control the appearance of the plotted items, one symbol statement for each appearance value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a SYMBOL statement to create a line you would set Interpol=Join (interpol here is "interpolation") to connect points, use the LINE= (1 to 46 ) to set the line type (solid and combinations of dots, short and long dashes and space betwee) and VALUE=NONE to not use markers (which is what is making the 'line' wide). There are additional options for line thickness (WIDTH) and such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding this to the code &lt;STRONG&gt;before &lt;/STRONG&gt;the Gplot:&lt;/P&gt;
&lt;PRE&gt;Symbol1 value=none 
        line=1 
        color=red 
        interpol=join
;
Symbol2 value=none 
        line=2 
        color=blue 
        interpol=join
;
Symbol3 value=none 
        line=3 
        color=black 
        interpol=join
;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 15:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830081#M327986</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-24T15:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to change line thickness in GPLOT?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830082#M327987</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;8302      symbol1 width=0.2;
8303      symbol2 width=0.5;
8304      proc gplot data=mydata;
8305      plot (var_y1a var_y1b)*ind/legend overlay;
8306      plot2 (var_y2)*ind/legend overlay noaxis;
8307      run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Tried the one with symbol1/2, still the line thickness is too much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830082#M327987</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-08-24T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change line thickness in GPLOT?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830083#M327988</link>
      <description>&lt;P&gt;Like to swtich to SGPLOT, could you give out an example with two y-axis with varied range?!&lt;/P&gt;
&lt;P&gt;I only know how to plot 2-y-axis with GPLOT so far.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830083#M327988</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-08-24T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change line thickness in GPLOT?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830091#M327993</link>
      <description>&lt;P&gt;Examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-y2axis-and-legend/m-p/230789#M8353" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-y2axis-and-legend/m-p/230789#M8353&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-with-2-y-axes/m-p/453755#M15558" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-with-2-y-axes/m-p/453755#M15558&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Agreeing with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; you don't really want a scatter plot, you want a series plot, so use the SERIES command in PROC SGPLOT instead of SCATTER.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830091#M327993</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-24T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change line thickness in GPLOT?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830099#M327998</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409584"&gt;@hellohere&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Like to swtich to SGPLOT, could you give out an example with two y-axis with varied range?!&lt;/P&gt;
&lt;P&gt;I only know how to plot 2-y-axis with GPLOT so far.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what you mean by "varied range" but you use the option&amp;nbsp; Y2AXIS added to a plot to use the alternate Y axis:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   scatter x=age y=weight;
   scatter x=age y=height /y2axis;
run;&lt;/PRE&gt;
&lt;P&gt;The option / X2AXIS would use a secondary (top) X axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Y2AXIS statement would control appearance such as restricting value range, setting tick marks and labels for the second axis just as the XAXIS and YAXIS statements control the basic X and Y axis appearance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic Sgplot would look like:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=mydata;
	series y=var_y1a x=ind;
	series y=var_y1b x=ind;
	Series y=var_y2 x=ind /y2axis;
run;&lt;/PRE&gt;
&lt;P&gt;From what your original graph looks like I might suspect you might want to consider reshaping the data to one "var_y1" variable with another variable to hold the "A" and "B" difference and use the Group= option.&lt;/P&gt;
&lt;P&gt;If you do not want any Y2AXIS displayed (bad idea in my mind as the axis could be considerably different and have implied similarity to the left axis) then this statement would suppress the appearance.&lt;/P&gt;
&lt;PRE&gt;y2axis display=none;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 15:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-line-thickness-in-GPLOT/m-p/830099#M327998</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-24T15:18:08Z</dc:date>
    </item>
  </channel>
</rss>

