<?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: Problem with using sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412815#M14168</link>
    <description>&lt;P&gt;For you X-Axis question, simplest method is to read them in as numeric, and put all as 0, so you have the values:&lt;/P&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;P&gt;100&lt;/P&gt;
&lt;P&gt;200&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;800&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then apply a format to the numeric data:&lt;/P&gt;
&lt;PRE&gt;proc format;
  value tmpfmt
    0='ALL';
run;

data have;
  set have;
  format thevalue tmpfmt.;
run;&lt;/PRE&gt;
&lt;P&gt;This will then sort the x-axis data as numeric, so all would be first, but display using the formatted value.&lt;/P&gt;
&lt;P&gt;With regards to your y-axis question, I don't know, never seen a graph with axis label at end.&amp;nbsp; If I was trying to do this I would just plot one scatter plot point 0,0.9 and label it with the text you want.&amp;nbsp; However you may find more information at this site:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is the best reference on graphing.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 09:16:21 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-13T09:16:21Z</dc:date>
    <item>
      <title>Problem with using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412370#M14139</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data picture;
input company_amount 	ticker_symbols	company_names;
datalines;
All 	0.2614	0.0706
800	0.264	0.8708
700	0.3303	0.009
600	0.2877	0.0149
500	0.4826	0.0099
400	0.7355	0.0092
300	0.68	0.0045
200	0.6754	0.002
100	0.0444	0.0046
;

proc sgplot data=picture;
     title "P-value Trends";
     SERIES X = company_amount Y = ticker_symbols/datalabel  LEGENDLABEL = "Ticker Symbols" MARKERS LINEATTRS = (THICKNESS = 2)  markerattrs=(symbol=circlefilled);
     SERIES X = company_amount Y = company_names/datalabel LEGENDLABEL = "Company Names" MARKERS LINEATTRS = (THICKNESS = 2  pattern=dashdashdot)  markerattrs=(symbol=squarefilled);
     XAXIS TYPE = DISCRETE;
     xaxis label='Company Amount' reverse;

     yaxis label='P-value';
     REFLINE 0.05 0.01 0.001 / TRANSPARENCY = 0.5;
     RUN; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The "all" in the data disappears in my picture. How to solve it?&lt;/P&gt;&lt;P&gt;Moreover, can I set y label horizontal?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412370#M14139</guid>
      <dc:creator>karen8169</dc:creator>
      <dc:date>2017-11-10T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412385#M14140</link>
      <description>&lt;P&gt;This:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;Data&lt;/SPAN&gt; picture&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; company_amount 	ticker_symbols	company_names&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt;&lt;SPAN class="token keyword"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token data string"&gt;
All 	0.2614	0.0706
800	0.264	0.8708&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is invalid, ALL is not numeric, so you cannot read it in with a numeric read of company amount.&amp;nbsp; Change the input to:&lt;BR /&gt;input company_amount $ ticker_symbols company_names;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then your company amount data will be character and able to hold ALL.&amp;nbsp; Also the graph should then treat them all as character.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412385#M14140</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-10T15:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412553#M14158</link>
      <description>&lt;P&gt;However, "&amp;nbsp;XAXIS reverse;" becomes invalidated. I want to arrange the x array from all to 100.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, I want to change the label in y array. How to revise it? Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16583i514AB2E879263EAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.PNG" alt="5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 07:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412553#M14158</guid>
      <dc:creator>karen8169</dc:creator>
      <dc:date>2017-11-11T07:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412815#M14168</link>
      <description>&lt;P&gt;For you X-Axis question, simplest method is to read them in as numeric, and put all as 0, so you have the values:&lt;/P&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;P&gt;100&lt;/P&gt;
&lt;P&gt;200&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;800&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then apply a format to the numeric data:&lt;/P&gt;
&lt;PRE&gt;proc format;
  value tmpfmt
    0='ALL';
run;

data have;
  set have;
  format thevalue tmpfmt.;
run;&lt;/PRE&gt;
&lt;P&gt;This will then sort the x-axis data as numeric, so all would be first, but display using the formatted value.&lt;/P&gt;
&lt;P&gt;With regards to your y-axis question, I don't know, never seen a graph with axis label at end.&amp;nbsp; If I was trying to do this I would just plot one scatter plot point 0,0.9 and label it with the text you want.&amp;nbsp; However you may find more information at this site:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is the best reference on graphing.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 09:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412815#M14168</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-13T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412982#M14175</link>
      <description>&lt;P&gt;Often special displays for values can be solved with a custom format. Please see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Data picture;
input company_amount 	ticker_symbols	company_names;
datalines;
999	0.2614	0.0706
800	0.264	0.8708
700	0.3303	0.009
600	0.2877	0.0149
500	0.4826	0.0099
400	0.7355	0.0092
300	0.68	0.0045
200	0.6754	0.002
100	0.0444	0.0046
;
proc format library=work;
value myall
999 = 'All'
;
run;
proc sgplot data=picture;
     title "P-value Trends";
     SERIES X = company_amount Y = ticker_symbols/datalabel  LEGENDLABEL = "Ticker Symbols" MARKERS LINEATTRS = (THICKNESS = 2)  markerattrs=(symbol=circlefilled);
     SERIES X = company_amount Y = company_names/datalabel LEGENDLABEL = "Company Names" MARKERS LINEATTRS = (THICKNESS = 2  pattern=dashdashdot)  markerattrs=(symbol=squarefilled);
     XAXIS TYPE = DISCRETE;
     xaxis label='Company Amount' reverse;

     yaxis label='P-value' labelpos=Top;
     REFLINE 0.05 0.01 0.001 / TRANSPARENCY = 0.5;
     format company_amount myall.;
RUN; &lt;/PRE&gt;
&lt;P&gt;Also notice the use of the labelpos option to move the y-axis label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 17:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-sgplot/m-p/412982#M14175</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-13T17:56:54Z</dc:date>
    </item>
  </channel>
</rss>

