<?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: stacked group plot with non missing data and values inside stack in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717642#M221957</link>
    <description>&lt;P&gt;Try this one, you can use Proc SGPANEL.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=final;
  styleattrs datacolors=(lightblue lightgreen orange red cyan);
  panelby new_subj /  layout=columnlattice novarname columns=5 colheaderpos=bottom uniscale=row noborder;
  vbarbasic exdose / response=pct_toxg  group=aetoxgr  seglabel;
  colaxis type=discrete display=(nolabel);
  keylegend / title="Toxicity Grade";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is this the result you are looking for?&lt;/P&gt;
&lt;P&gt;For the scatterplot we are missing a variable in the data.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 16:42:59 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2021-02-08T16:42:59Z</dc:date>
    <item>
      <title>stacked group plot with non missing data and values inside stack</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717571#M221930</link>
      <description>&lt;P&gt;I have a issue where i want to have a group vbar with only group which has nonmissing data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WORK.FINAL;
  infile datalines dsd truncover;
  input aetoxgr:$12. pct_toxg:PERCENT8. new_subj:$29. EXDOSE:32.;
  format pct_toxg PERCENT8.;
datalines4;
Grmdr1,8%,C1D1(n=12),0.3
Grmdr1,33%,C1D1(n=12),1
Grmdr2,8%,C1D1(n=12),1
Grmdr1,10%,C1D8(n=10),3
Grmdr1,10%,C1D8(n=10),10
Grmdr2,10%,C1D8(n=10),3
Grmdr2,20%,C1D8(n=10),10
Grmdr3,10%,C1D8(n=10),10
Grmdr1,13%,C1D15(n=8),30
Grmdr2,13%,C1D15(n=8),30
Grmdr3,13%,C1D15(n=8),30
Grmdr2,25%,C2D1(n=4),10
Grmdr1,50%,C2D8(n=4),10
;;;;
i want to remove nonmissing legends as highlighted in attachedment with blue marker and also get percentages as shown in second sample figure attached, not sure how to do,
Can anyone please help.
I used the below code
proc template;
	define statgraph final2;
		begingraph / datacolors=(lightblue lightgreen orange red cyan);
			layout datalattice columnvar=new_subj/
				rowaxisopts=( Label=' ' offsetmin=0)
				columnaxisopts=(offsetmin=0.3 offsetmax=0.3 display=(ticks tickvalues))
				headerlabeldisplay=value headeropaque=false columnheaders=bottom;
				layout prototype /walldisplay=none;
					BarChartParm X=exdose Y=pct_toxg / primary=true Group=aetoxgr
						NAME="Status" groupdisplay=stack barwidth=0.9;
					Scatterplot x=exdose y=yScatter / group=aetoxgr 
						markercharacter=pct_toxg labelstrip=true
						markercharacterattrs=(size=16 weight=bold color=white);
				endlayout;
			endlayout;
			layout globallegend;
				DiscreteLegend "Status"/ title="Toxicity Grade";
			endlayout;
		endgraph;
	end;
run;

ods listing gpath='output\';
ods graphics / imagename="test" imagefmt=png;

proc sgrender data=final2 template=final2;
run;


ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV id="tinyMceEditornoda6003_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717571#M221930</guid>
      <dc:creator>noda6003</dc:creator>
      <dc:date>2021-02-08T15:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: stacked group plot with non missing data and values inside stack</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717598#M221942</link>
      <description>&lt;P&gt;No attachment&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717598#M221942</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-08T15:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: stacked group plot with non missing data and values inside stack</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717613#M221946</link>
      <description>&lt;P&gt;sorry attached now&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717613#M221946</guid>
      <dc:creator>noda6003</dc:creator>
      <dc:date>2021-02-08T15:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: stacked group plot with non missing data and values inside stack</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717642#M221957</link>
      <description>&lt;P&gt;Try this one, you can use Proc SGPANEL.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=final;
  styleattrs datacolors=(lightblue lightgreen orange red cyan);
  panelby new_subj /  layout=columnlattice novarname columns=5 colheaderpos=bottom uniscale=row noborder;
  vbarbasic exdose / response=pct_toxg  group=aetoxgr  seglabel;
  colaxis type=discrete display=(nolabel);
  keylegend / title="Toxicity Grade";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is this the result you are looking for?&lt;/P&gt;
&lt;P&gt;For the scatterplot we are missing a variable in the data.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 16:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717642#M221957</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-02-08T16:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: stacked group plot with non missing data and values inside stack</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717658#M221962</link>
      <description>&lt;P&gt;Thanks a lot, it works pretty much except ordering which i gave&amp;nbsp;grouporder=ascending and i created order variable ord and it was ordered at final step but it misses&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 17:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stacked-group-plot-with-non-missing-data-and-values-inside-stack/m-p/717658#M221962</guid>
      <dc:creator>noda6003</dc:creator>
      <dc:date>2021-02-08T17:15:23Z</dc:date>
    </item>
  </channel>
</rss>

