<?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: help design graphs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819021#M22914</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data path_resistance;
	infile datalines delimiter = ',';
	input pathGroup :$40. pathResistant $  resCount resPct total sub_total char : $80.;
	format resPct percent8.0;
	datalines;
Pathogen A,No,170,.  ,. ,.,.
Pathogen A,Yes,33,.2  ,33,20,———
Pathogen B,No,100,. ,. ,.,.
Pathogen B,Yes,66,.14 ,66 ,50,———
Pathogen C,No,144,. ,. ,.,.
Pathogen C,Yes,44,.40 ,44 ,30,———
;
run;



proc sgplot data = path_resistance noautolegend noborder;
	yaxis display = (nolabel) valueattrs = (color=black size=12pt);
	xaxis grid min=0 label="Number of infections" ;
	vbarparm category = pathGroup response = resCount /group = pathResistant dataskin=pressed
         groupdisplay=cluster datalabel=total;
	text x=pathGroup y=sub_total text=char/strip CONTRIBUTEOFFSETS=none position=right textattrs=(color=yellow size=20);
	xaxistable resPct/location=inside position=bottom nolabel  ;
	xaxis display=(noline noticks nolabel);
	yaxis grid display=(noline noticks);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1655633417081.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72423i283156C92D4E8111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1655633417081.png" alt="Ksharp_0-1655633417081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jun 2022 10:10:17 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-06-19T10:10:17Z</dc:date>
    <item>
      <title>help design graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819012#M22911</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;this is the graph I need to build:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IditMaor_0-1655623064032.jpeg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72420iE5DC80A99B33B148/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IditMaor_0-1655623064032.jpeg" alt="IditMaor_0-1655623064032.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. how do I add the data in&amp;nbsp;percent mark in yellow at the bottom?&lt;/P&gt;&lt;P&gt;2. how do I add the data above the bar (mark in yellow )?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Idit Maor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 07:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819012#M22911</guid>
      <dc:creator>IditMaor</dc:creator>
      <dc:date>2022-06-19T07:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: help design graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819019#M22913</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data path_resistance;
	infile datalines delimiter = ',';
	input pathGroup :$40. pathResistant $  resCount resPct total sub_total char : $80.;
	format resPct percent8.0;
	datalines;
Pathogen A,No,170,.  ,. ,.,.
Pathogen A,Yes,33,.2  ,33,20,———
Pathogen B,No,100,. ,. ,.,.
Pathogen B,Yes,66,.14 ,66 ,50,———
Pathogen C,No,144,. ,. ,.,.
Pathogen C,Yes,44,.40 ,44 ,30,———
;
run;



proc sgplot data = path_resistance noautolegend noborder;
	yaxis display = (nolabel) valueattrs = (color=black size=12pt);
	xaxis grid min=0 label="Number of infections" ;
	vbarparm category = pathGroup response = resCount /group = pathResistant 
         groupdisplay=cluster datalabel=total;
	text x=pathGroup y=sub_total text=char/strip CONTRIBUTEOFFSETS=none position=right textattrs=(color=yellow size=20);
	xaxistable resPct/location=inside position=bottom nolabel  ;
	xaxis display=(noline noticks nolabel);
	yaxis grid display=(noline noticks);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1655633062179.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72422iC7C51E0C508F9C33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1655633062179.png" alt="Ksharp_0-1655633062179.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819019#M22913</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-19T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: help design graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819021#M22914</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data path_resistance;
	infile datalines delimiter = ',';
	input pathGroup :$40. pathResistant $  resCount resPct total sub_total char : $80.;
	format resPct percent8.0;
	datalines;
Pathogen A,No,170,.  ,. ,.,.
Pathogen A,Yes,33,.2  ,33,20,———
Pathogen B,No,100,. ,. ,.,.
Pathogen B,Yes,66,.14 ,66 ,50,———
Pathogen C,No,144,. ,. ,.,.
Pathogen C,Yes,44,.40 ,44 ,30,———
;
run;



proc sgplot data = path_resistance noautolegend noborder;
	yaxis display = (nolabel) valueattrs = (color=black size=12pt);
	xaxis grid min=0 label="Number of infections" ;
	vbarparm category = pathGroup response = resCount /group = pathResistant dataskin=pressed
         groupdisplay=cluster datalabel=total;
	text x=pathGroup y=sub_total text=char/strip CONTRIBUTEOFFSETS=none position=right textattrs=(color=yellow size=20);
	xaxistable resPct/location=inside position=bottom nolabel  ;
	xaxis display=(noline noticks nolabel);
	yaxis grid display=(noline noticks);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1655633417081.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72423i283156C92D4E8111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1655633417081.png" alt="Ksharp_0-1655633417081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819021#M22914</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-19T10:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: help design graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819032#M22916</link>
      <description>&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;I have another question.&lt;/P&gt;&lt;P&gt;this id the second graph I need to do:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IditMaor_0-1655635603123.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72427iA660E5C3052A68E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IditMaor_0-1655635603123.png" alt="IditMaor_0-1655635603123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;now, how do I add several lines on the bar?&lt;/P&gt;&lt;P&gt;Idit Maor&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819032#M22916</guid>
      <dc:creator>IditMaor</dc:creator>
      <dc:date>2022-06-19T10:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: help design graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819121#M22921</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards expandtabs;
input min max Origin $ Type $ low high;
cards;
17 220 Asia SUV  17 220
23 30 Asia Sedan . .
30 37 Asia Sports  . .
37 52 Asia Wagon  . .
50 190 Europe SUV 15 190
100 127 Europe Sedan  . .
127 135 Europe Sports  . .
135 137 Europe Wagon  . .
100 200 USA SUV 16 200
121 129 USA Sedan  . .
129 134 USA Sports  . .
134 151 USA Wagon  . .
;



ods graphics / reset=all;
title 'Highway Mileage by Origin and Type';

proc sgplot data=have;
  highlow y=origin high=max low=min / group=type type=bar
          lowlabel=low highlabel=high ;
  xaxis display=(nolabel) offsetmax=0.1 offsetmin=0.1;
  yaxis display=(nolabel noticks) ;
  keylegend /location=inside position=ne across=1;
  run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1655725792142.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72451i2D3F522848E8F466/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1655725792142.png" alt="Ksharp_0-1655725792142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 11:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819121#M22921</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-20T11:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: help design graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819122#M22922</link>
      <description>&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;this is what I need&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 12:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/help-design-graphs/m-p/819122#M22922</guid>
      <dc:creator>IditMaor</dc:creator>
      <dc:date>2022-06-20T12:00:43Z</dc:date>
    </item>
  </channel>
</rss>

