<?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: GROUPLC, GROUPLP, etc. do not follow attributions map in PROC SGPANEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893635#M353035</link>
    <description>&lt;P&gt;The DATTRMAP data set variable SHOW controls the behavior of appearance in the legend. If you use a variable&lt;/P&gt;
&lt;P&gt;with the value of "DATA" then only the groups that have values appear in the legend, this is the default. The value of "ATTRMAP" for show will display all of the group values whether there are any in the data or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I not infrequently create two versions of an ID, with the Data and the other with ATTRMAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp; documentation is pretty clear:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-generatedOptionCategoryList"&gt;
&lt;H5 class="xis-option"&gt;&lt;A href="http://127.0.0.1:49416/help/grstatproc.hlp/n0jqynt72pfh63n1mse15s4umacp.htm#n1nf0dmhr7sp1xn1vaeo730ozb12" target="_blank" rel="noopener"&gt;GROUPLC=&lt;SPAN class="xis-userSuppliedValue"&gt;variable&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xis-shortDescription"&gt;specifies a variable that determines the line colors for a grouped plot independently of the GROUP= variable.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"independently of the Group" means overrides/replaces any Group characteristic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You aren't very clear about what you may want to do but there are the options like LCATTRID LPATTRID MCATTRID (and others) to&amp;nbsp; modify behavior of the GROUPLC GROUPLP GROUPMC variables (and others)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 20:34:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-09-11T20:34:27Z</dc:date>
    <item>
      <title>GROUPLC, GROUPLP, etc. do not follow attributions map in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893630#M353031</link>
      <description>&lt;P&gt;It appears the attributions map only applies to the GROUP option and not the other GROUPxC options. Is there a way to specify colors used for each potential legend item? Note, I need the legend to include all protection status options, even if some are not present.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data attrmap;
infile datalines dlm="," dsd;
length 	markersymbol $15.  
		value $30. 
		fillcolor linecolor markercolor $10.;
input id $ value $ fillcolor $ linecolor $ markercolor $ markersymbol $ linepattern;
datalines;
prtct, Protected Following CHMI 1, #f06800, #f06800, #f06800, CircleFilled, 1
prtct, Unprotected Following CHMI 1, #ffa866, #ffa866, #ffa866, CircleFilled, 1
prtct, Unprotected Following CHMI 2, VPAP, VPAP, VPAP, CircleFilled, 1
prtct, Protected Following CHMI 2, VIP, VIP, VIP, CircleFilled, 1
prtct, Not Challenged, grey, grey, grey, X, 1
;
run;

ods graphics on	/ reset= index border= no width= 10in height= 6in attrpriority= none;
proc sgpanel data= rpt dattrmap= attrmap noautolegend;
 panelby armn	/ novarname onepanel columns= 1 headerattrs= (family="times new roman" size=9pt) sort= data;			
	 series x= plvisdy y= aval	/ group= patid grouplc= pstat grouplp= pstat groupmc= pstat groupms= pstat attrid= prtct name= "status" markers nomissinggroup;
		colaxis	label= "Study Day Relative to First Vaccination"	labelattrs= (family="times new roman" size=10pt)
					valueattrs= (family="times new roman" size=9pt)	values= (1 29 57 71 85 120 141 176 323 379 558) offsetmin= 0.02;
		rowaxis label= "Background-Adjusted Percentage"				labelattrs= (family="times new roman" size=10pt)
					valueattrs= (family="times new roman" size=9pt) /*max= 100 min= 0*/;

	refline ref1		/ axis= x lineattrs= (pattern=4);
	refline ref2		/ axis= x;

	keylegend "status"	/ title= "Protection Status"	 					titleattrs= (family="times new roman" size= 9pt)
					  		  valueattrs= (family= "times new roman" size= 9pt) position= bottom  noborder type= markercolor across= 2;
	format armn ARMN.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 19:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893630#M353031</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2023-09-11T19:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: GROUPLC, GROUPLP, etc. do not follow attributions map in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893635#M353035</link>
      <description>&lt;P&gt;The DATTRMAP data set variable SHOW controls the behavior of appearance in the legend. If you use a variable&lt;/P&gt;
&lt;P&gt;with the value of "DATA" then only the groups that have values appear in the legend, this is the default. The value of "ATTRMAP" for show will display all of the group values whether there are any in the data or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I not infrequently create two versions of an ID, with the Data and the other with ATTRMAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp; documentation is pretty clear:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-generatedOptionCategoryList"&gt;
&lt;H5 class="xis-option"&gt;&lt;A href="http://127.0.0.1:49416/help/grstatproc.hlp/n0jqynt72pfh63n1mse15s4umacp.htm#n1nf0dmhr7sp1xn1vaeo730ozb12" target="_blank" rel="noopener"&gt;GROUPLC=&lt;SPAN class="xis-userSuppliedValue"&gt;variable&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xis-shortDescription"&gt;specifies a variable that determines the line colors for a grouped plot independently of the GROUP= variable.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"independently of the Group" means overrides/replaces any Group characteristic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You aren't very clear about what you may want to do but there are the options like LCATTRID LPATTRID MCATTRID (and others) to&amp;nbsp; modify behavior of the GROUPLC GROUPLP GROUPMC variables (and others)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 20:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893635#M353035</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-11T20:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: GROUPLC, GROUPLP, etc. do not follow attributions map in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893637#M353037</link>
      <description>I needed the lines and points to be displayed for each subject (GROUP= patid), but the colors and patterns to be based on protection status (GROUPxC= pstat). Adding the LCATTRID, etc. seemed to do the trick. Thank you!</description>
      <pubDate>Mon, 11 Sep 2023 20:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GROUPLC-GROUPLP-etc-do-not-follow-attributions-map-in-PROC/m-p/893637#M353037</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2023-09-11T20:30:24Z</dc:date>
    </item>
  </channel>
</rss>

