<?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: X-axis labeling with two lables in same graph in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298087#M16880</link>
    <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4916i9C6911D7B30E3312/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1.jpeg" title="Fig 1.jpeg" border="0" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4917i69BC8FEDBAB95ABD/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1_New.jpeg" title="Fig 1_New.jpeg" border="0" /&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the quick reply. Yes, I am looking for two different axis labels for one graph. I attached the graphs as image (it was attached to the body of the text). If u see in the Figure 1, I have X- axis as Studies. I also want Independent Studies (in excel sheet) as X-axis label. Can you please help me with the X2AXIS sas code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Satish&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 16:01:31 GMT</pubDate>
    <dc:creator>smunigala</dc:creator>
    <dc:date>2016-09-13T16:01:31Z</dc:date>
    <item>
      <title>X-axis labeling with two lables in same graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298082#M16878</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am looking for help in creating graphs with two sets of labeling for X-axis. I am attaching my excel sheet, SAS code and the graphs I had generated. Basicially I want two X-axis labeling (Independent Studies and Studies) in the same graph. If you look at my SAS code, for two different graphs, X axis is Studies and Independent Studies. My data is the same and graphs generated are the same. However, I want tow X-axis labels in the same graph (Studies and Independent Studies).&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4914iB935514F2BF730C9/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1.jpeg" title="Fig 1.jpeg" border="0" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4915i657004287859B3A1/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1_New.jpeg" title="Fig 1_New.jpeg" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all the help,&lt;/P&gt;
&lt;P&gt;Satish&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods graphics / reset width=600px height=400px imagename='Fig 1' imagefmt=jpeg;
ods html file='Surg.html' path='E:\HRM\Revised\Revised18_New' style=journal; 

/*ods html file='ap.html' path='C:\' style=journal; */
 proc sgplot data=graphs;
 scatter X=Studies Y=MP /  markerattrs=(color=blue symbol=CircleFilled size=8) name="scat" legendlabel="Motor Pattern";
 series X=Studies Y=MP /  lineattrs=(color=blue pattern=1) ;
scatter X=Studies Y=BP /  markerattrs=(color=red symbol=SquareFilled size=8) name="scat1" legendlabel="Body Pattern";
 series X=Studies Y=BP /  lineattrs=(color=red pattern=1) ;
scatter X=Studies Y=OutOb /  markerattrs=(color=green symbol=TriangleFilled size=8) name="scat2" legendlabel="Achalasia/ Outflow obstruction";
 series X=Studies Y=OutOb /  lineattrs=(color=green pattern=1) ;

 XAXIS TYPE = DISCRETE ;
 YAXIS LABEL = '% Accuracy'    VALUES = (0 TO 100 BY 10);
keylegend "scat" "scat1" "scat2"  "scat4"  / position=bottomleft
across=1 location=inside ;
 run;
ods html close;
ods listing;


ods listing close;
ods graphics / reset width=600px height=400px imagename='Fig 1_New' imagefmt=jpeg;
ods html file='Surg.html' path='E:\HRM\Revised\Revised18_New' style=journal; 

/*ods html file='ap.html' path='C:\' style=journal; */
 proc sgplot data=graphs;
 scatter  X=Independent_Studies Y=MP /  markerattrs=(color=blue symbol=CircleFilled size=8) name="scat" legendlabel="Motor Pattern";
 series  X=Independent_Studies Y=MP /  lineattrs=(color=blue pattern=1) ;
scatter  X=Independent_Studies Y=BP /  markerattrs=(color=red symbol=SquareFilled size=8) name="scat1" legendlabel="Body Pattern";
 series  X=Independent_Studies Y=BP /  lineattrs=(color=red pattern=1) ;
scatter  X=Independent_Studies Y=OutOb /  markerattrs=(color=green symbol=TriangleFilled size=8) name="scat2" legendlabel="Achalasia/ Outflow obstruction";
 series X=Independent_Studies Y=OutOb /  lineattrs=(color=green pattern=1) ;

 XAXIS TYPE = DISCRETE ;
 YAXIS LABEL = '% Accuracy'    VALUES = (0 TO 100 BY 10);
keylegend "scat" "scat1" "scat2"  "scat4"  / position=bottomleft
across=1 location=inside ;
 run;
ods html close;
ods listing;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298082#M16878</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-09-13T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: X-axis labeling with two lables in same graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298083#M16879</link>
      <description>&lt;P&gt;I can't tell if you are asking for two different axis labels for one graph, in which case look at the X2AXIS statement or two similar graphs with different Xaxis labels, which might be SGPanel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't normally open Excel files but there wasn't any graph in yours so it doesn't help to answer appearance questions.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298083#M16879</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-13T15:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: X-axis labeling with two lables in same graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298087#M16880</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4916i9C6911D7B30E3312/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1.jpeg" title="Fig 1.jpeg" border="0" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4917i69BC8FEDBAB95ABD/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1_New.jpeg" title="Fig 1_New.jpeg" border="0" /&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the quick reply. Yes, I am looking for two different axis labels for one graph. I attached the graphs as image (it was attached to the body of the text). If u see in the Figure 1, I have X- axis as Studies. I also want Independent Studies (in excel sheet) as X-axis label. Can you please help me with the X2AXIS sas code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 16:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298087#M16880</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-09-13T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: X-axis labeling with two lables in same graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298091#M16881</link>
      <description>&lt;P&gt;Hope this PDF attachment helps in communicating what I am looking for (2 X-axis lables in one graph).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 16:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298091#M16881</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-09-13T16:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: X-axis labeling with two lables in same graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298200#M16900</link>
      <description>&lt;PRE&gt;
Can you post it at ODS Graphic forum, not this forum .
Try  using X2AXIS statement.



&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Sep 2016 02:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/X-axis-labeling-with-two-lables-in-same-graph/m-p/298200#M16900</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-14T02:23:34Z</dc:date>
    </item>
  </channel>
</rss>

