<?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: representation of several histograms on the same axis in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/representation-of-several-histograms-on-the-same-axis/m-p/800112#M15870</link>
    <description>&lt;P&gt;Here are two options. The simplest way is to use PROC SGPLOT, but PROC SGPANEL has some options for paneling the data that might be useful:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
length Symptoms $16 Group $3;
input Symptoms Group Percent;
datalines;
viraux         A 58
viraux         B 20
viraux         C 12
viraux         D 10
vir_douloureux A 64
vir_douloureux B 25
vir_douloureux C 9
vir_douloureux D 2
respiratoire   A 57
respiratoire   B 23
respiratoire   C 14
respiratoire   D 6
;

title "An SGPLOT Example";
proc sgplot data=Have;
   hbar Symptoms / response=Percent group=Group groupdisplay=cluster 
        datalabel datalabelpos=data grouporder=descending;
   xaxis grid label="Percent";
   yaxis reverse;
run;

title "An SGPANEL Example";
proc sgpanel data=Have noautolegend;
   panelby Symptoms / novarname layout=rowlattice onepanel rows=3;
   hbar Group / response=Percent group=group;
   colaxis grid display=(nolabel);;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 04 Mar 2022 12:04:26 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-03-04T12:04:26Z</dc:date>
    <item>
      <title>representation of several histograms on the same axis</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/representation-of-several-histograms-on-the-same-axis/m-p/800084#M15869</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 3 variables each having 4 modalities. I would like to represent their histogram aligned along the abscissas in the same graph to visualize. What option or instruction does this?&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Gick&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC GCHART data=data;
HBAR symptomes_viraux symptomes_vir_douloureux Maladie_respiratoire  /ascending outside=percent;
RUN ;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="picture_SAS.PNG" style="width: 692px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69136iEE6221368CD31883/image-size/large?v=v2&amp;amp;px=999" role="button" title="picture_SAS.PNG" alt="picture_SAS.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/representation-of-several-histograms-on-the-same-axis/m-p/800084#M15869</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-03-04T07:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: representation of several histograms on the same axis</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/representation-of-several-histograms-on-the-same-axis/m-p/800112#M15870</link>
      <description>&lt;P&gt;Here are two options. The simplest way is to use PROC SGPLOT, but PROC SGPANEL has some options for paneling the data that might be useful:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
length Symptoms $16 Group $3;
input Symptoms Group Percent;
datalines;
viraux         A 58
viraux         B 20
viraux         C 12
viraux         D 10
vir_douloureux A 64
vir_douloureux B 25
vir_douloureux C 9
vir_douloureux D 2
respiratoire   A 57
respiratoire   B 23
respiratoire   C 14
respiratoire   D 6
;

title "An SGPLOT Example";
proc sgplot data=Have;
   hbar Symptoms / response=Percent group=Group groupdisplay=cluster 
        datalabel datalabelpos=data grouporder=descending;
   xaxis grid label="Percent";
   yaxis reverse;
run;

title "An SGPANEL Example";
proc sgpanel data=Have noautolegend;
   panelby Symptoms / novarname layout=rowlattice onepanel rows=3;
   hbar Group / response=Percent group=group;
   colaxis grid display=(nolabel);;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/representation-of-several-histograms-on-the-same-axis/m-p/800112#M15870</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-04T12:04:26Z</dc:date>
    </item>
  </channel>
</rss>

