<?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: Adding significance symbols in all panels in sgpanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967393#M25547</link>
    <description>&lt;P&gt;Padding a blank before 'GEM' and PROC SORT it before PROC SGPANEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
call streaminit(123);
do s=1 to 3;
 do h=1 to 8;
  do g='Hass' ,'GEM';
  v=rand('uniform');output;
  end;
 end;
end;
run;

&lt;STRONG&gt;
data have;
 set have;
 if g='GEM' then g=' GEM';
run;
proc sort data=have;
by g;
run;&lt;/STRONG&gt;


proc sgpanel data=have;
panelby s/onepanel rows=1;
vline h /response=v group=g markers markerattrs=(symbol=circlefilled) ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1748053512965.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107322i1E89634417B880D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748053512965.png" alt="Ksharp_0-1748053512965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 May 2025 02:38:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-05-24T02:38:34Z</dc:date>
    <item>
      <title>Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967267#M25541</link>
      <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to add a significance "*" symbol to the datalabel in sgpanel. I was able to add an&amp;nbsp;"*" to the Season=2021 but I don't know how to also add it in the other seasons too, because the significance varies from season to season.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code and graphs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how I would like to have the "*" symbols in all seasons:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1747958957215.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107263iBCF57BE95EB070A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1747958957215.png" alt="palolix_0-1747958957215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data dlabel;&lt;BR /&gt;set one;&lt;BR /&gt;if Variety in('BL516') and Harvest in(1,2,6) and Season=2021 then dlabel="*";&lt;BR /&gt;else dlabel="";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;How could I also include&lt;/P&gt;
&lt;P&gt;if Variety in('BL516') and Harvest in(8) and Season=2022 then dlabel="*" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title "DTR: BL516 vs Hass by Season and Harvest month";&lt;BR /&gt;proc sgpanel data=dlabel;&lt;BR /&gt;where Season in(2021, 2022, 2023) and Harvest in(1,2,3,4,5,6,8) and Variety in('BL516','Hass');&lt;BR /&gt;panelby Season/columns=3 onepanel ;&lt;BR /&gt;vline Harvest/response=DTR group=Variety stat=mean datalabel=dlabel ;&lt;BR /&gt;rowaxis&amp;nbsp; values=(0 to 12 by 2) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_1-1747959218864.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107264i3420F9F1A080851E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_1-1747959218864.png" alt="palolix_1-1747959218864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would greatly appreciate your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 00:23:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967267#M25541</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-23T00:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967269#M25542</link>
      <description>&lt;P&gt;That would be a lot of easy if you could post some real data&amp;nbsp; to test your code.&lt;/P&gt;
&lt;P&gt;Anyway, here could give you a start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do s=1 to 3;
 do h=1 to 8;
  do g=1 to 2;
  v=rand('uniform');output;
  end;
 end;
end;
run;
proc sql;
create table have2 as
select *,max(v)+0.2 as max
 from have 
  group by s,h
   order by s,h
;
quit;

data have2;
set have2;
by s h;
call streaminit(123);
if first.h and mod(h,4)=rand('table',0.3,0.3) then label='*';
run;
proc sgpanel data=have2;
panelby s/onepanel rows=1;
series x=h y=v / group=g markers markerattrs=(symbol=circlefilled);
scatter x=h y=max/datalabel=label datalabelpos=top labelstrip datalabelattrs=(size=20 ) markerattrs=(size=0);
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-1747962928933.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107265i8691A022B790CB5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1747962928933.png" alt="Ksharp_0-1747962928933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 01:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967269#M25542</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-23T01:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967361#M25543</link>
      <description>&lt;P&gt;Thank you very much Ksharp! I will try to work out that code with my data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't mind, I have a another question:&lt;/P&gt;
&lt;P&gt;I had to do some formatting in order to reorder the levels of the var 'Harvest' to (11,12,1,2,3,5) but the issue I am having is that even though the order in the graph is the order I want, the label is showing in the graph is 'tag' instead of 'Harvest'. How do I change the label?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would very much appreciate it if you could let me know!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;proc sort data=one out=one; by Harvest; run;&lt;/DIV&gt;
&lt;DIV&gt;data one22;&lt;/DIV&gt;
&lt;DIV&gt;set one;&lt;/DIV&gt;
&lt;DIV&gt;where Variety in('464918_99','Hass');&lt;/DIV&gt;
&lt;DIV&gt;if (Harvest eq 11) then tag=1;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 12) then tag=2;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 1) then tag=3;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 2) then tag=4;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 3) then tag=5;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 5) then tag=6;&lt;/DIV&gt;
&lt;DIV&gt;else tag=.;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc format;&lt;/DIV&gt;
&lt;DIV&gt;value Harvest 1="11"&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 2="12"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 3="1"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 4="2"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 5="3"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 6="5";&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;title "DTR: 464918_99 vs Hass by Season and Harvest month";&lt;/DIV&gt;
&lt;DIV&gt;proc sgpanel data=one22;&lt;/DIV&gt;
&lt;DIV&gt;where Season in(2021, 2022, 2024) and Harvest in(11,12,1,2,3,5) and Variety in('464918_99','Hass');&lt;/DIV&gt;
&lt;DIV&gt;panelby Season/rows=1 onepanel ;&lt;/DIV&gt;
&lt;DIV&gt;format tag Harvest.;&lt;/DIV&gt;
&lt;DIV&gt;vline tag /response=DTR group=Variety markers markerattrs=(symbol=circlefilled) stat=mean&amp;nbsp; ;&lt;/DIV&gt;
&lt;DIV&gt;rowaxis&amp;nbsp; values=(0 to 12 by 2) ;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748023368501.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107304i13170F0E6EB3099B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748023368501.png" alt="palolix_0-1748023368501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 18:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967361#M25543</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-23T18:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967372#M25544</link>
      <description>&lt;P&gt;The best way to set the label in this case would be to use the LABEL statement inside of the SGPANEL specification:&lt;/P&gt;
&lt;P&gt;label tag="Harvest";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This temporarily sets the column label within the scope of the procedure. That way, your axis label, tip labels, etc. pick up the label. It is also possible to set label="Harvest" on the ROWAXIS statement, but that will affect only the axis label.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 20:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967372#M25544</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2025-05-23T20:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967378#M25545</link>
      <description>&lt;P&gt;It worked! Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 20:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967378#M25545</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-23T20:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967383#M25546</link>
      <description>&lt;P&gt;Last question;&lt;/P&gt;
&lt;P&gt;Is there a way to change the order of the line colors and the Variety legend so that GEM comes first in the legend and has the blue color instead? I have been trying different things but I still cannot figure it out.&lt;/P&gt;
&lt;P&gt;Thank you so much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748042709352.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107319i61752270363D4C81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748042709352.png" alt="palolix_0-1748042709352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;title "DTR: GEM vs Hass by Season and Harvest month";&lt;BR /&gt;proc sgpanel data=one;&lt;BR /&gt;where Season in(2021, 2022, 2023) and Harvest in(1,3,4,5,6,8) and Variety in('GEM','Hass');&lt;BR /&gt;panelby Season/rows=1 onepanel ;&lt;BR /&gt;vline Harvest/response=DTR group=Variety markers markerattrs=(symbol=circlefilled) stat=mean ;&lt;BR /&gt;rowaxis&amp;nbsp; values=(0 to 12 by 2) ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 23:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967383#M25546</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-23T23:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967393#M25547</link>
      <description>&lt;P&gt;Padding a blank before 'GEM' and PROC SORT it before PROC SGPANEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
call streaminit(123);
do s=1 to 3;
 do h=1 to 8;
  do g='Hass' ,'GEM';
  v=rand('uniform');output;
  end;
 end;
end;
run;

&lt;STRONG&gt;
data have;
 set have;
 if g='GEM' then g=' GEM';
run;
proc sort data=have;
by g;
run;&lt;/STRONG&gt;


proc sgpanel data=have;
panelby s/onepanel rows=1;
vline h /response=v group=g markers markerattrs=(symbol=circlefilled) ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1748053512965.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107322i1E89634417B880D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748053512965.png" alt="Ksharp_0-1748053512965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 May 2025 02:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967393#M25547</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-24T02:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967439#M25548</link>
      <description>&lt;P&gt;Thank you very much Ksharp. I tried the code and I am getting the order and colors I want, but I'm getting different data (below 2 DTR). I wonder what am I doing wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data one;&lt;BR /&gt;call streaminit(123);&lt;BR /&gt;do Season=2021 to 2023;&lt;BR /&gt;do Harvest=1 to 8;&lt;BR /&gt;do Variety='Hass' ,'GEM';&lt;BR /&gt;DTR=rand('uniform');output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data one;&lt;BR /&gt;set one;&lt;BR /&gt;if Variety='GEM' then Variety=' GEM';&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=one;&lt;BR /&gt;by Variety;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;proc sgpanel data=one;&lt;BR /&gt;/*where Season in(2021, 2022, 2023) and Harvest in(1,3,4,5,6,8) and Variety in('GEM','Hass');*/&lt;BR /&gt;panelby Season/rows=1 onepanel ;&lt;BR /&gt;vline Harvest/response=DTR group=Variety markers markerattrs=(symbol=circlefilled) stat=mean ;&lt;BR /&gt;rowaxis values=(0 to 12 by 2) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748212434958.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107333i91C2684A13D6DF89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748212434958.png" alt="palolix_0-1748212434958.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the data I should get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748213330788.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107335iBFA09E492C023DE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748213330788.png" alt="palolix_0-1748213330788.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Sun, 25 May 2025 23:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967439#M25548</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-25T23:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967444#M25549</link>
      <description>&lt;P&gt;?? That is because you specify XAXIS value by "rowaxis values=(0 to 12 by 2) ;". You need to remove it if the real data don't fall in such range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data one;
call streaminit(123);
do Season=2021 to 2023;
do Harvest=1 to 8;
do Variety='Hass' ,'GEM';
DTR=rand('uniform');output;
end;
end;
end;
run;


data one;
set one;
if Variety='GEM' then Variety=' GEM';
run;
proc sort data=one;
by Variety;
run;



proc sgpanel data=one;
/*where Season in(2021, 2022, 2023) and Harvest in(1,3,4,5,6,8) and Variety in('GEM','Hass');*/
panelby Season/rows=1 onepanel ;
vline Harvest/response=DTR group=Variety markers markerattrs=(symbol=circlefilled) stat=mean ;
/*rowaxis values=(0 to 12 by 2) ;*/
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1748221162340.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107336i14491092017A1DB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748221162340.png" alt="Ksharp_0-1748221162340.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to put series in the middle of graph, you need to make sure the data value have such mean value.&lt;/P&gt;
&lt;PRE&gt;data one;
call streaminit(123);
do Season=2021 to 2023;
do Harvest=1 to 8;
do Variety='Hass' ,'GEM';
DTR=rand('uniform')&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;+6&lt;/STRONG&gt;&lt;/FONT&gt;;output;
end;
end;
end;
run;


data one;
set one;
if Variety='GEM' then Variety=' GEM';
run;
proc sort data=one;
by Variety;
run;



proc sgpanel data=one;
/*where Season in(2021, 2022, 2023) and Harvest in(1,3,4,5,6,8) and Variety in('GEM','Hass');*/
panelby Season/rows=1 onepanel ;
vline Harvest/response=DTR group=Variety markers markerattrs=(symbol=circlefilled) stat=mean ;
rowaxis values=(0 to 12 by 2) ;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1748221562303.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107337iEA7D9663917E3379/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748221562303.png" alt="Ksharp_0-1748221562303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 01:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967444#M25549</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-26T01:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967451#M25552</link>
      <description>&lt;P&gt;Thanks for your reply Ksharp. If I remove it I get values from 0 to 1, that is why I set up the&amp;nbsp;rowaxis values going from 0 to 12. What I want is my data to take these values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748230698822.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107339i7D6917C11AA38AEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748230698822.png" alt="palolix_0-1748230698822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 03:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967451#M25552</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-26T03:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967452#M25553</link>
      <description>I don't understand . if you want graph to look like it, you need the mean of data should be 6 around. &lt;BR /&gt;That is reason I add 6 in my code.&lt;BR /&gt;&lt;BR /&gt;DTR=rand('uniform')+6;output;</description>
      <pubDate>Mon, 26 May 2025 04:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967452#M25553</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-26T04:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967463#M25554</link>
      <description>&lt;P&gt;I added the 6 but I get this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748234770947.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107347iF46C83365CB66BE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748234770947.png" alt="palolix_0-1748234770947.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The original means go from 4 to 10 like in this excel graph. Is there a way to get the same original means in the same range as in this excel graphs?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_2-1748234827015.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107349i9CC56097B758A27A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_2-1748234827015.png" alt="palolix_2-1748234827015.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 04:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967463#M25554</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-26T04:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967464#M25555</link>
      <description>Sorry. The scatters just is plotted by the original value of your data,&lt;BR /&gt;if your data has real value like this , you would get this graph .&lt;BR /&gt;Otherwise,you need to post your real data and see how is going.</description>
      <pubDate>Mon, 26 May 2025 04:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967464#M25555</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-26T04:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967470#M25556</link>
      <description>&lt;P&gt;But in the first graph I made in sas, the data was the same as the one in the excel graph (on a range from 4 to 10). I attached my original data in excel. Probably I made not myself clear, but the only thing I wanted to change from this graph was to change the colors of the Varieties (not the data) so that the lines are red for Hass&amp;nbsp; and blue for GEM (in case that is possible). So sorry for the confusion.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1748238162846.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107351i26F8E95CD6F4137B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1748238162846.png" alt="palolix_0-1748238162846.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 06:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967470#M25556</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-05-26T06:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967478#M25558</link>
      <description>&lt;P&gt;I did not get any problem. You need the help of option "grouporder=ascending".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='C:\Users\xiakeshan\Documents\Downloads\dtr.xlsx' out=have dbms=xlsx replace;
run;



data one;
set have;
if strip(Variety)='GEM' then Variety='  GEM';
DTR=input(DTR__days_to_ripe_,best.);
run;


proc sgpanel data=one ; 
where Season in(2021, 2022, 2023) and Harvest__month_ in(1,3,4,5,6,8) and  strip(Variety) in ('GEM','Hass');
panelby Season/rows=1 onepanel ;
vline Harvest__month_/response=DTR group=Variety grouporder=ascending markers markerattrs=(symbol=circlefilled) stat=mean ;
rowaxis values=(0 to 12 by 2) ;
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-1748242297718.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107352i54D76844B0ED61B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748242297718.png" alt="Ksharp_0-1748242297718.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Mon, 26 May 2025 06:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967478#M25558</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-26T06:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding significance symbols in all panels in sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967480#M25559</link>
      <description>&lt;PRE&gt;proc import datafile='C:\Users\xiakeshan\Documents\Downloads\dtr.xlsx' out=have dbms=xlsx replace;
run;



data one;
set have;
if strip(Variety)='GEM' then Variety='  GEM';
DTR=input(DTR__days_to_ripe_,best.);
run;



proc sgpanel data=one ; 
&lt;STRONG&gt;styleattrs datacolors=(red blue) datacontrastcolors=(red  blue) ;&lt;/STRONG&gt;
where Season in(2021, 2022, 2023) and Harvest__month_ in(1,3,4,5,6,8) and  strip(Variety) in ('GEM','Hass');
panelby Season/rows=1 onepanel ;
vline Harvest__month_/response=DTR group=Variety grouporder=ascending markers markerattrs=(symbol=circlefilled) TRANSPARENCY=0 stat=mean ;
rowaxis values=(0 to 12 by 2) ;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1748243108937.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107353iA5B284E4CDCBC0CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748243108937.png" alt="Ksharp_0-1748243108937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 07:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-significance-symbols-in-all-panels-in-sgpanel/m-p/967480#M25559</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-26T07:05:20Z</dc:date>
    </item>
  </channel>
</rss>

