<?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: Proc SGpanel and how to change vbar patterns ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952364#M372215</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics/attrpriority=none;
proc sgpanel data=sashelp.heart noautolegend ;
panelby bp_Status/ 	onepanel layout=columnlattice colheaderpos=top /*noborder*/ novarname; 
vbar smoking_status	/group=smoking_status nofill fillpattern dataskin=crisp groupdisplay=cluster response=weight grouporder=data ;
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-1733191522977.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102647i795EE138F872F40D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733191522977.png" alt="Ksharp_0-1733191522977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 02:05:29 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-12-03T02:05:29Z</dc:date>
    <item>
      <title>Proc SGpanel and how to change vbar patterns ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952245#M372176</link>
      <description>&lt;P&gt;Hi SAS friends,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am using Proc SGpanel to create a single panel graph with 3 groups, and 3 subgroups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I"d like the subgroup vbars to have the same fill pattern across the three main groups, that is Mo has one fill pattern, Larry has a different one, as does Curly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have looked at the online help and have had no luck in solving.&lt;/P&gt;&lt;P&gt;Attached is a sample dataset, and current graph image and here's the current code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* START metabolite % figure */
ods listing;
ods html path="&amp;amp;out.\" (url=NONE) style=journal;
ods graphics on /attrpriority=none imagename="Met_Pct" imagefmt=png noborder;
ODS HTML	;

Title1	color=black height=2	"Bryl cream use amongst early comedians" ;
proc format;
			value O_No
				1='Winken'
				2='Blinken'
				3='Nod'
				;
			value 	C_No
				1='Mo'
				2='Larry'
				3='Curly'
				;
run;
proc sgpanel data	=	sf.MLC		  noautolegend  ;
	format	O_No	O_No.		C_No	C_No.	;
  	panelby O_No 		/ 	onepanel layout=columnlattice colheaderpos=top /*noborder*/ novarname; 
  	vbar 	C_No 	/ 		dataskin=crisp groupdisplay=cluster response=pct grouporder=data ;
  	rowaxis 	label="%"	min	=	0 	max	=	80 	valueattrs=(size=8)	;
  colaxis 	 display=(nolabel)	;  
run;
ods graphics off;
ods html close;
/* END	metabolite % figure */

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Would greatly appreciate help in solving this one !&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 01:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952245#M372176</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2024-12-02T01:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGpanel and how to change vbar patterns ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952326#M372196</link>
      <description>&lt;P&gt;Recreate the graph using Proc SGPlot, V-bar option.&lt;/P&gt;&lt;P&gt;Proc SG Panel does not easily support the V-bar fill needed, while Proc SGPlot was able to do it easily.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 19:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952326#M372196</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2024-12-02T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGpanel and how to change vbar patterns ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952364#M372215</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics/attrpriority=none;
proc sgpanel data=sashelp.heart noautolegend ;
panelby bp_Status/ 	onepanel layout=columnlattice colheaderpos=top /*noborder*/ novarname; 
vbar smoking_status	/group=smoking_status nofill fillpattern dataskin=crisp groupdisplay=cluster response=weight grouporder=data ;
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-1733191522977.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102647i795EE138F872F40D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733191522977.png" alt="Ksharp_0-1733191522977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 02:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/952364#M372215</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-03T02:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGpanel and how to change vbar patterns ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/959367#M374303</link>
      <description>&lt;P&gt;Thank you !&amp;nbsp; Sorry for the late reply !&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGpanel-and-how-to-change-vbar-patterns/m-p/959367#M374303</guid>
      <dc:creator>rmacarthur</dc:creator>
      <dc:date>2025-02-17T14:46:05Z</dc:date>
    </item>
  </channel>
</rss>

