<?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>Graphics Programming topics</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/bd-p/sas_graph</link>
    <description>Graphics Programming topics</description>
    <pubDate>Thu, 22 Jul 2021 17:26:02 GMT</pubDate>
    <dc:creator>sas_graph</dc:creator>
    <dc:date>2021-07-22T17:26:02Z</dc:date>
    <item>
      <title>Axis table overlapping the first value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Axis-table-overlapping-the-first-value/m-p/755783#M21769</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to add&amp;nbsp; axis table, and the label(stratum) overlaps the first value. I am using the following code for the axis table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout overlay / walldisplay=none xaxisopts=(display=none OFFSETMIN=0);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; axistable x=TATRISK value=ATRISK /title="Number At Risk" display=(label) valueattrs=(size=8pt)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=stratum colorgroup=stratum VALUEHALIGN=right; &lt;BR /&gt;endlayout;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example fig:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new510_0-1626908854677.png" style="width: 561px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61518i1F281D502EE9F7BE/image-dimensions/561x174?v=v2" width="561" height="174" role="button" title="new510_0-1626908854677.png" alt="new510_0-1626908854677.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The label was supposed to be Treat11, and the first value is truncated to 41 instead of 2841.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 23:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Axis-table-overlapping-the-first-value/m-p/755783#M21769</guid>
      <dc:creator>new510</dc:creator>
      <dc:date>2021-07-21T23:26:37Z</dc:date>
    </item>
    <item>
      <title>a percentage-based bar graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754820#M21765</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a categorical variable in my data. I am trying to draw a bar graph for this variable based on the percents. The below code is working but the sum of percentages is not 100%. I don't know how it is calculating this. Is there an easy way to draw a percentage-based bar graph?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=alt_listening;
title "Proficiency Level: List 1-2";
vbar listening_pl / stat=pct transparency=0.25 fillattrs=(color=black) ;
yaxis label= 'Percent' ;
xaxis label= 'Proficiency Level';
by cluster_listening;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 05:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754820#M21765</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-07-18T05:52:44Z</dc:date>
    </item>
    <item>
      <title>Fun With SAS ODS Graphics: Happy Ba(r)stille Day!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Ba-r-stille-Day/m-p/753994#M21762</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bar3.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61235i19857070AC659142/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bar3.png" alt="Flag of France - Take 3!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Flag of France - Take 3!&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick SAS ODS Graphics take on the &lt;A href="https://en.wikipedia.org/wiki/Flag_of_France" target="_self"&gt;Flag of France&lt;/A&gt; for Bastille Day - third time's the charm!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Happy Ba(r)stille Day! (vertical bar chart Flag of France)
  Based on colors/dimensions at en.wikipedia.org/wiki/Flag_of_France;

data flag; do c=1 to 3; output; end;                                     * Generate flag data - tricolour of blue/white/red;

ods graphics / reset height=4in width=6in antialias;                     * 2:3 proportion (height:width);

proc sgplot data=flag;                                                   * Plot #1: Generate bar chart;
vbar c;

proc sgplot data=flag;                                                   * Plot #2: Generate bar chart with colors of Flag of France;
vbar c / colorresponse=c colormodel=(cx0055A4 cxFFFFFF cxEF4135);

proc sgplot data=flag aspect=.66667 noautolegend pad=0 noborder nowall;  * Plot #3: Generate bar chart as tricolour Flag of France;
vbar c / barwidth=1 colorresponse=c colormodel=(cx0055A4 cxFFFFFF cxEF4135) nooutline baselineattrs=(thickness=0);
xaxis display=none min=.5 max=3.5 offsetmin=0 offsetmax=0 type=linear;   * Suppress axis/padding;
yaxis display=none min=0 max=1 offsetmin=0 offsetmax=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="Bar1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61236i9966253BDC8581C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bar1.png" alt="Flag of France - Take 1!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Flag of France - Take 1!&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bar2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61237i8373F54354D56D8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bar2.png" alt="Flag of France - Take 2!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Flag of France - Take 2!&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 03:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Ba-r-stille-Day/m-p/753994#M21762</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-07-14T03:30:42Z</dc:date>
    </item>
    <item>
      <title>Create and IMAGE file of output from PROC REPORT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-and-IMAGE-file-of-output-from-PROC-REPORT/m-p/753287#M21755</link>
      <description>&lt;P&gt;Can I create output from PROC REPORT as an image (PNG).&amp;nbsp; I want to annotate a figure (SGPLOT) with a small table of statistics, using IMAGE function seems like an easy way, but I also don't want to create the image file by hand.&amp;nbsp; I don't think INSET or AXISTABLE are suitable that's why I think IMAGE would be nice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 20:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-and-IMAGE-file-of-output-from-PROC-REPORT/m-p/753287#M21755</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-07-09T20:54:16Z</dc:date>
    </item>
    <item>
      <title>How to make tickstyle=inside work for BOTH major and minor tick marks?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-tickstyle-inside-work-for-BOTH-major-and-minor-tick/m-p/753219#M21752</link>
      <description>&lt;PRE&gt;1. I'm using proc template, trying to have my tick marks plotted inside rather than outside. I'm using option tickstyle=inside, but this option seems to affect only the major tick marks, not the minor ones.&lt;BR /&gt;&lt;BR /&gt;2. I'm using SAS 9.4 1M7.&lt;BR /&gt;&lt;BR /&gt;3. Any suggested solution for how to have BOTH major and minor tick marks inside?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-tickstyle-inside-work-for-BOTH-major-and-minor-tick/m-p/753219#M21752</guid>
      <dc:creator>JonathanNitzan</dc:creator>
      <dc:date>2021-07-09T17:00:26Z</dc:date>
    </item>
    <item>
      <title>How to reduce spacing in Shewhart chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-reduce-spacing-in-Shewhart-chart/m-p/752951#M21739</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm want to create an XSchart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The chart was split into 4 instead of 1. Please how do I make this come out as just 1 chart?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data points for the subgroup variable are 09/01/2020, 10/01/2020,...01/01/2021&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Length of Stay";
symbol v=dot;

proc shewhart data=work.nowsbaseline_sorted;
	xschart neonatald*measureperiodid/haxis= '01SEP2020'd to '01MAR2021'd by 31;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 23:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-reduce-spacing-in-Shewhart-chart/m-p/752951#M21739</guid>
      <dc:creator>annaabimbola</dc:creator>
      <dc:date>2021-07-08T23:05:25Z</dc:date>
    </item>
    <item>
      <title>combine Barchart with Circles</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/combine-Barchart-with-Circles/m-p/752432#M21722</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please give some example code for the vertical bar graph with circles plotting on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 21:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/combine-Barchart-with-Circles/m-p/752432#M21722</guid>
      <dc:creator>pmksasbi</dc:creator>
      <dc:date>2021-07-06T21:22:40Z</dc:date>
    </item>
    <item>
      <title>Fun With SAS ODS Graphics: Patriotic Pom Pom July 4th Wreath (Bubble+Scatter Plots)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Patriotic-Pom-Pom-July-4th-Wreath/m-p/751940#M21717</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PomPomWreathSas.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60935iCC2A7C286BCDA4F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="PomPomWreathSas.png" alt="Patriotic Pom Pom Wreath" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Patriotic Pom Pom Wreath&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS ODS Graphics bubble plot take on a &lt;A href="https://www.etsy.com/listing/964348987/patriotic-pom-pom-wreath-red-white-and" target="_self"&gt;neat Etsy Patriotic Pom Pom Wreath&lt;/A&gt;. Have a Happy 4th, all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Patriotic Pom Pom July 4th Wreath (Bubble+Scatter Plots)
  Inspired by Patriotic Pom Pom wreath at etsy.com/listing/964348987/patriotic-pom-pom-wreath-red-white-and;

proc format;                              * Assign red/white/blue colors based on angles of wedges; 
value rwb -250--140='Blue' -270--260, 80-90, 20-40, -40--20, -100--80 ='Red'  
          50-70, -10-10, -70--50, -130--110='White'; 

data wreath;                              * Generate points for July 4th 'wreath';
retain size 1 txt 'HAPPY*4TH OF JULY!';
do a=90 to -270 by -10;                   * Generates points for balloons;
  do r=.7 to 1 by .15;                    * Three points for each angle;  
    x=r*cos(a*constant('pi')/180);
    y=r*sin(a*constant('pi')/180);        
    c=put(a,rwb.);                        * Assign color;
    output;
  end;
end;
x=.; y=.;                                 * Generate points for stars;
do a=-150 to -240 by -15;                 * In the blue wedge of wreath;                
  if r=.9 then r=.8; else r=.9;           * Alternate location of stars (radius=.8 or .9);          
  xs=r*cos(a*constant('pi')/180);
  ys=r*sin(a*constant('pi')/180);         
  output;
end;
xs=.; ys=.;                               * Generate point for text;
xt=0; yt=0;
output;
                                          * Patriotic Pom Pom Wreath (Bubble+Scatter Plots);
proc sgplot data=wreath aspect=1 noautolegend noborder;
styleattrs datacolors=(red white navy);
symbolchar name=uniStar char='2605'x;     * Unicode 5-pointed star;
bubble x=x y=y size=size /                /* Red, white and blue bubbles */
       dataskin=pressed group=c nooutline bradiusmin=.23in bradiusmax=.25in;   
scatter x=xs y=ys /                       /* White stars */                          
        markerattrs=(symbol=unistar size=36pt color=white);        
xaxis display=none; yaxis display=none;   * Look Ma, no axes!;
text x=xt y=yt text=txt / strip textattrs=(size=18pt color=navy weight=bold) 
     splitchar='*' splitpolicy=splitalways contributeoffsets=none; * Happy 4th of July!; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Patriotic-Pom-Pom-July-4th-Wreath/m-p/751940#M21717</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-07-04T03:52:02Z</dc:date>
    </item>
    <item>
      <title>xaxis marks correlated with x-values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/xaxis-marks-correlated-with-x-values/m-p/751459#M21712</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using proc sgplot to model the relationship between bone level and follow up years in two treatment groups (A/B). The issue I have is that the tick marks of the x-axis are not spaced right. In other words, the 1 year and 6 years are spaced equally. I hope someone can show me how to space the marks so that they are correlated with the number of years. I included below a sample of my data, the program I used, and the resulting figure.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;subject&amp;nbsp;&amp;nbsp;&amp;nbsp; group&amp;nbsp;&amp;nbsp;&amp;nbsp; followup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; level&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.7&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.6&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.9&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.6&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 08&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 08&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data=p1;&lt;/P&gt;
&lt;P&gt;vline followup / response=level&amp;nbsp; group=group&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; stat=mean limitstat=stderr lineattrs=(thickness=&lt;STRONG&gt;6&lt;/STRONG&gt;px);&lt;/P&gt;
&lt;P&gt;yaxis label="Bone Level (mm)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; valueattrs=(size=&lt;STRONG&gt;18&lt;/STRONG&gt;pt) labelattrs=(size=&lt;STRONG&gt;20&lt;/STRONG&gt;pt weight=bold);&lt;/P&gt;
&lt;P&gt;xaxis discreteorder=unformatted label="Follow up (years)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; valueattrs=(size=&lt;STRONG&gt;18&lt;/STRONG&gt;pt) labelattrs=(size=&lt;STRONG&gt;20&lt;/STRONG&gt;pt weight=bold);&lt;/P&gt;
&lt;P&gt;keylegend /location=inside valueattrs=(size=&lt;STRONG&gt;18&lt;/STRONG&gt;pt)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; title="" titleattrs=(size=&lt;STRONG&gt;16&lt;/STRONG&gt;pt);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&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="Jason2020_0-1625148317385.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60875iA8EBE178C1F59F61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason2020_0-1625148317385.png" alt="Jason2020_0-1625148317385.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/xaxis-marks-correlated-with-x-values/m-p/751459#M21712</guid>
      <dc:creator>Jason2020</dc:creator>
      <dc:date>2021-07-01T14:06:08Z</dc:date>
    </item>
    <item>
      <title>How to change font in a plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-font-in-a-plot/m-p/751407#M21711</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It seems a very easy question but somehow I am struggling with this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I just want to change the FONT (not font size, this I can do easily) of all text in a plot (in SGPLOT): axis labels and values, legend items...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I guess I have to define a new style, something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style my_style;
parent=styles.htmlblue;
class GraphValueText / font = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;",20pt);
end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;How can I set the font to Times New Roman, or Arial, etc, instead of sans-serif?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Where can I find a list of available fonts?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And how do I apply the new style to the plot?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could someone give an example (as easy as possible)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 07:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-font-in-a-plot/m-p/751407#M21711</guid>
      <dc:creator>marta25</dc:creator>
      <dc:date>2021-07-01T07:04:38Z</dc:date>
    </item>
    <item>
      <title>proc lifetest not all tatrisk values are not being displayed.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-lifetest-not-all-tatrisk-values-are-not-being-displayed/m-p/750984#M21702</link>
      <description>&lt;P&gt;I have used proc lifetest and output the survival plot for atrisk and tatrisk to plot the km plot. My survival output dataset has tatrisk values as 0, 2, 4, 6. But when I output it using proc template and sgrender only 0, 2, 6 values are being displayed.&lt;CODE class=" language-sas"&gt;
&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 21:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-lifetest-not-all-tatrisk-values-are-not-being-displayed/m-p/750984#M21702</guid>
      <dc:creator>S_RAVI</dc:creator>
      <dc:date>2021-07-01T21:10:34Z</dc:date>
    </item>
    <item>
      <title>using annotate in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/using-annotate-in-proc-sgplot/m-p/750918#M21699</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following code to draw a bar chart and label each bar with the sum total of each bar or each year using an annotate dataset. The seglabels should be in percentage as shown in the graph, since I can't use datalabel here, I creatde an annotate dataset but can't get it working, I might probably be missing something somewhere. any help? My code is as below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydat;
infile datalines;
input year	level $12.	number_of_cases;
datalines;
2001	1	        90	
2001	2	        1	 
2001	3	        5	 
2001	4	        22	
2001	no cases	35	
2002	1	        99	
2002	2	        4	 
2002	3	        2	 
2002	4	        55	
2002	no cases	39	
2003	1	        200
2003	2	        45	
2003	3	        77	
2003	4	        39	
2003	no cases	23	
2004	1	        205
2004	2	        19	
2004	3	        29	
2004	4	        15	
2004	no cases	18	
2005	1	        159
2005	2	        323
2005	3	        99	
2005	4	        10	
2005	no cases	28	
2006	1	        88	
2006	2	        10	
2006	3	        16	
2006	4	        55	
2006	no cases	8	 
;
run;
*calculate sum of cases per year;
proc means data=mydat noprint nway;
	class year;
	var number_of_cases;
	output out=sum_mydat (drop=_TYPE_ _FREQ_) sum= / autoname;
run;
*calculate rel. perecntages;
data merge_mydat;
	merge mydat sum_mydat;
	by year;
	format rel_freq percent8.0; 
	rel_freq = divide(number_of_cases,number_of_cases_sum);
    drop number_of_cases_sum;
run;

*create annodat;
data anno;
length function color $8 style $12;                                                                                                  
retain function 'label' when 'a' size 1.25 position '2'                                                                              
          color 'black' xsys '2' ysys '2' style 'Albany AMT' weight 'bold';    
set sum_mydat;

midpoint=year;                                                                                                                       
   y=number_of_cases_Sum;                                                                                                                            
   text=put(number_of_cases_Sum,3.);  

run;

*create attrmap;
data myattrmap;
	infile datalines;
	input id $6. value $10. fillcolor $8. linecolor $9.;
	datalines;
level no cases  CXA9A9A9 CXA9A9A9
level 1         CX00FFFF CX00FFFF
level 2         CXFF7F50 CXFF7F50
level 3         CXFFF8DC CXFFF8DC
level 4         CX006400 CX006400
;
run;

*create chart with labels, the totals of each bar should be written on top of the bar;

proc sgplot data =merge_mydat dattrmap=myattrmap sganno=anno pad=(bottom=5%) noautolegend noborder;
xaxis grid type=discrete discreteorder=data;
vbarparm category= year  response=rel_freq /group=level groupdisplay=stack attrid=level seglabel seglabelattrs=(size=0.25 color="CXFDF5E6") 
seglabelfitpolicy=none barwidth=0.6 missing;
xaxis  display= (nolabel) valueattrs=(family="verdana" size=8pt) fitpolicy=rotate ValuesRotate=Vertical;
yaxis  display= (nolabel) valueattrs=(family="verdana" size=8pt);
keylegend / location=outside position=bottomright across=0 title=" " valueattrs=(size=2 family="verdana") outerpad=(top=0.2cm) noborder;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 13:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/using-annotate-in-proc-sgplot/m-p/750918#M21699</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-06-29T13:01:35Z</dc:date>
    </item>
    <item>
      <title>Proc SGPANEL color by subject</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPANEL-color-by-subject/m-p/749641#M21695</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate a figure plot using the below code. I am getting the output as in the attached screen shot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgpanel data=have&amp;nbsp; ;&lt;BR /&gt;panelby SUBJID / layout=PANEL novarname columns=4 rows=2;&lt;BR /&gt;series x=x_axis_var y=aval /group=trt01p_ attrid=myid lineattrs=(pattern=mediumdash thickness=2);&lt;BR /&gt;scatter x=x_axis_var y=aval /group=trt01p_ attrid=myid markerattrs = (symbol=circlefilled size=8);&lt;/P&gt;&lt;P&gt;rowaxis integer grid values=(0,50,75,100) label="test";&lt;BR /&gt;colaxis integer grid values=(1 to 10 by 1) discreteorder=data label="Day";&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My query is how can we change the Blue color plots 'Green', Red color plots to 'Blue' and the bottom Legend with Green and Blue colors?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csa_1-1624381705014.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60629i2B891448A2406865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="csa_1-1624381705014.png" alt="csa_1-1624381705014.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;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPANEL-color-by-subject/m-p/749641#M21695</guid>
      <dc:creator>csa</dc:creator>
      <dc:date>2021-06-22T17:12:40Z</dc:date>
    </item>
    <item>
      <title>DATTRMAP for data label text color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/DATTRMAP-for-data-label-text-color/m-p/750049#M21687</link>
      <description>&lt;P&gt;Is it possible in SGPIE to use a dynamic data label text color?&amp;nbsp; If so, what is the right variable name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data attrmap;
  set sashelp.class;
  if sex='M' then textcolor='blue';
  else textcolor='pink';
  fillcolor='orange';
  id = 'mycolors';
  value = name;
  keep id value textcolor fillcolor;
run;
  
  
proc sgpie data=sashelp.class dattrmap=attrmap;
pie name/attrid=mycolors;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I know that the attribute map is "working" for the rows since the fillcolor is changing, but the textcolor won't change, and I have tried everything I can - textcolor, datalabeltextcolor, datalabelattrs with 'color=blue' - but can't seem to find the option (or, it's not possible?). Don't really want to go the SGANNO route as suggested on a somewhat similar post, so perhaps it's just not possible... Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 22:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/DATTRMAP-for-data-label-text-color/m-p/750049#M21687</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2021-06-23T22:13:20Z</dc:date>
    </item>
    <item>
      <title>ODS LAYOUT ABSOLUTE with a BY statement in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-ABSOLUTE-with-a-BY-statement-in-PROC-SGPLOT/m-p/749836#M21679</link>
      <description>&lt;P&gt;I can create an output with four plots on one page using ODS LAYOUT ABSOLUTE, as shown in code #1. But then I want to use a BY statement in PROC SGPLOT, such that the first I get four plots on one page, where all four plots are for the same level of the BY variable and the plots are always in the same position, see code #2.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Code #1, this works as expected, but I have not used a BY statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="absolute.pdf";
ods layout absolute ;
ods region x=.5in y=0.1in width=4in height=2.75in;
proc sgplot data=sashelp.cars;
    histogram msrp;
run;
ods region  x=5.1in y=.1in width=4in height=2.75in;
proc sgplot data=sashelp.cars;
    histogram invoice;
run;
ods region  x=.5in y=5.25in width=4in height=2.75in;
proc sgplot data=sashelp.cars;
    histogram mpg_city;
run;
ods region  x=5.1in y=5.25in width=4in height=2.75in;
proc sgplot data=sashelp.cars;
    histogram horsepower;
run;
ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, code #2, with a BY Statement, it doesn't work at all, how can I get something like this to work? I want three output pages, the first page would be four plots for origin='Asia', with MSRP top left, INVOICE top right, MPG_CITY bottom left and HORSEPOWER bottom right; second page would be for origin='Europe', exact same arrangement of plots; third page would be for origin='USA', exact same arrangement of plots.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars out=cars;
    by origin;
run;
ods pdf file="absolute2.pdf";
ods layout absolute ;
ods region x=.5in y=0.1in width=4in height=2.75in;
proc sgplot data=cars;
    by origin;
    histogram msrp;
run;
ods region  x=5.1in y=.1in width=4in height=2.75in;
proc sgplot data=cars;
    by origin;
    histogram invoice;
run;
ods region  x=.5in y=5.25in width=4in height=2.75in;
proc sgplot data=cars;
    by origin;
    histogram mpg_city;
run;
ods region  x=5.1in y=5.25in width=4in height=2.75in;
proc sgplot data=cars;
    by origin;
    histogram horsepower;
run;
ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Adding: I'm sure I could just wrap this in a macro and loop through all possible values of the BY variable and do it that way, but over the years I have found that SAS is very good at anticipating needs and creating features to do this, so really I'd like to do this without a macro if possible.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 12:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-ABSOLUTE-with-a-BY-statement-in-PROC-SGPLOT/m-p/749836#M21679</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-23T12:27:02Z</dc:date>
    </item>
    <item>
      <title>Proc SGPANEL color by subject</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPANEL-color-by-subject/m-p/749650#M21676</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate a figure plot using the below code. I am getting the output as in the attached screen shot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgpanel data=have&amp;nbsp; ;&lt;BR /&gt;panelby SUBJID / layout=PANEL novarname columns=4 rows=2;&lt;BR /&gt;series x=x_axis_var y=aval /group=trt01p_&amp;nbsp; lineattrs=(pattern=mediumdash thickness=2);&lt;BR /&gt;scatter x=x_axis_var y=aval /group=trt01p_ markerattrs = (symbol=circlefilled size=8);&lt;/P&gt;&lt;P&gt;rowaxis integer grid values=(0,50,75,100) label="test";&lt;BR /&gt;colaxis integer grid values=(1 to 10 by 1) discreteorder=data label="Day";&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My query is how can we change the Blue color plots 'Green', Red color plots to 'Blue' and the bottom Legend with Green and Blue colors?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csa_0-1624383627203.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60631iCAF4793B13E26816/image-size/medium?v=v2&amp;amp;px=400" role="button" title="csa_0-1624383627203.png" alt="csa_0-1624383627203.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>Tue, 22 Jun 2021 17:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPANEL-color-by-subject/m-p/749650#M21676</guid>
      <dc:creator>csa</dc:creator>
      <dc:date>2021-06-22T17:41:31Z</dc:date>
    </item>
    <item>
      <title>SAS GTL: Symbol (created by SymbolChar statement) moving on Y-Axis when increasing size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-Symbol-created-by-SymbolChar-statement-moving-on-Y-Axis/m-p/746978#M21672</link>
      <description>&lt;P&gt;Hi all, I have an issue using SymbolChar statement to define MARKERATTRS symbol value for a scatterplot.&lt;/P&gt;&lt;P&gt;When I increase the size of the symbol in MARKERATTRS, then the symbol is moving on the Y-Axis. it looks like the symbol has something like POSITION=BOTTOM whereas I'm expecting MIDDLE or CENTER value. I can try to decrease the impact by adding vertical offset to my symbol. But if anybody has an idea of what is happening and how to avoid this it would be great for me (I'm using SAS 9.4 9.4 (TS1M5)).&lt;/P&gt;&lt;P&gt;Thank you for reading.&lt;BR /&gt;Mickael&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data WORK.PLOT ;&lt;BR /&gt;infile datalines4 dsd missover dlm=',' ;&lt;BR /&gt;length DAY GEOMEAN LCLM UCLM 8. ;&lt;BR /&gt;input DAY GEOMEAN LCLM UCLM ;&lt;BR /&gt;datalines4 ;&lt;BR /&gt;1,5.851,5.721,5.983&lt;BR /&gt;15,10.103,8.531,11.965&lt;BR /&gt;29,17.723,14.523,21.628&lt;BR /&gt;57,25.449,20.171,32.108&lt;BR /&gt;71,76.898,62.926,93.972&lt;BR /&gt;85,119.914,101.658,141.447&lt;BR /&gt;;;;;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;** Style to be used for the plot ** ;&lt;BR /&gt;/*this SAS style can be used: STYLES.Journal;*/&lt;BR /&gt;ods path (PREPEND) WORK.GRAPH ;&lt;/P&gt;&lt;P&gt;proc template ;&lt;BR /&gt;define statgraph TestSymbolChar / store=WORK.GRAPH ;&lt;BR /&gt;mvar GraphTitle EmDashSize ;&lt;BR /&gt;dynamic XVar YMean YLowBound YUpBound ;&lt;BR /&gt;begingraph ;&lt;BR /&gt;symbolchar name=EmDash char='2014'x / /*textattrs=(size=20pt)*/ hoffset=0 voffset=0 /*+0.1*/ ;&lt;BR /&gt;entrytitle textattrs=(size=10pt weight=bold) GraphTitle ;&lt;BR /&gt;layout overlay / xaxisopts=(label='Day')&lt;BR /&gt;yaxisopts=(griddisplay=on type=log logopts=(base=10 Thresholdmax=1 Thresholdmin=1 minorticks=true minortickcount=8 minorgrid=true)&lt;BR /&gt;label='Geometric Mean (95%CI)' griddisplay=on) ;&lt;BR /&gt;scatterplot x=XVar y=YMean / markerattrs=(symbol=EmDash size=EmDashSize weight=bold color=black) errorbarcapshape=serif&lt;BR /&gt;errorbarattrs=(thickness=1pt color=black) yerrorlower=YLowBound yerrorupper=YUpBound name="GeoMean" ;&lt;BR /&gt;endlayout ;&lt;BR /&gt;endgraph ;&lt;BR /&gt;end ;&lt;BR /&gt;quit ;&lt;BR /&gt;*** Path of the template catalogs *** ;&lt;BR /&gt;ods path SASUSER.TEMPLAT(UPDATE) SASHELP.TMPLMST(READ) WORK.MYTEMP(READ) WORK.GRAPH(READ) ;&lt;/P&gt;&lt;P&gt;** SAS SGRender ** ;&lt;BR /&gt;%let EmDashSize= ;&lt;BR /&gt;%let GraphTitle=Using &amp;amp;EmDashSize. as a size for Symbol Char ;&lt;BR /&gt;%let FigureRoot=C:\Temp ;&lt;BR /&gt;option center ;&lt;BR /&gt;ods listing close ;&lt;BR /&gt;ods graphics on / reset=index imagename="TestSymbolCharEmpty" height=10cm width=16cm noborder ;&lt;BR /&gt;ods html style=styles.journal2 image_dpi=150 gpath="&amp;amp;FigureRoot." path="&amp;amp;FigureRoot." (url=none) file="output.html" ;&lt;/P&gt;&lt;P&gt;*goptions reset=all ;&lt;BR /&gt;ods graphics / outputfmt=png ;&lt;BR /&gt;&lt;BR /&gt;proc sgrender data=WORK.PLOT template=TestSymbolChar description='' ;&lt;BR /&gt;dynamic XVar='DAY' YMean='GEOMEAN' YLowBound='LCLM' YUpBound='UCLM' ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;ods listing ;&lt;/P&gt;&lt;P&gt;** SAS SGRender ** ;&lt;BR /&gt;%let EmDashSize=12pt ;&lt;BR /&gt;%let GraphTitle=Using &amp;amp;EmDashSize. as a size for Symbol Char ;&lt;BR /&gt;%let FigureRoot=C:\Temp ;&lt;BR /&gt;option center ;&lt;BR /&gt;ods listing close ;&lt;BR /&gt;ods graphics on / reset=index imagename="TestSymbolChar12pt" height=10cm width=16cm noborder ;&lt;BR /&gt;ods html style=styles.journal2 image_dpi=150 gpath="&amp;amp;FigureRoot." path="&amp;amp;FigureRoot." (url=none) file="output.html" ;&lt;/P&gt;&lt;P&gt;*goptions reset=all ;&lt;BR /&gt;ods graphics / outputfmt=png ;&lt;BR /&gt;&lt;BR /&gt;proc sgrender data=WORK.PLOT template=TestSymbolChar description='' ;&lt;BR /&gt;dynamic XVar='DAY' YMean='GEOMEAN' YLowBound='LCLM' YUpBound='UCLM' ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;ods listing ;&lt;/P&gt;&lt;P&gt;%let EmDashSize=18pt ;&lt;BR /&gt;%let GraphTitle=Using &amp;amp;EmDashSize. as a size for Symbol Char ;&lt;BR /&gt;%let FigureRoot=C:\Temp ;&lt;BR /&gt;option center ;&lt;BR /&gt;ods listing close ;&lt;BR /&gt;ods graphics on / reset=index imagename="TestSymbolChar18pt" height=10cm width=16cm noborder ;&lt;BR /&gt;ods html style=styles.journal2 image_dpi=150 gpath="&amp;amp;FigureRoot." path="&amp;amp;FigureRoot." (url=none) file="output.html" ;&lt;/P&gt;&lt;P&gt;*goptions reset=all ;&lt;BR /&gt;ods graphics / outputfmt=png ;&lt;BR /&gt;&lt;BR /&gt;proc sgrender data=WORK.PLOT template=TestSymbolChar description='' ;&lt;BR /&gt;dynamic XVar='DAY' YMean='GEOMEAN' YLowBound='LCLM' YUpBound='UCLM' ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;ods listing ;&lt;/P&gt;&lt;P&gt;%let EmDashSize=40 ;&lt;BR /&gt;%let GraphTitle=Using &amp;amp;EmDashSize. as a size for Symbol Char ;&lt;BR /&gt;%let FigureRoot=C:\Temp ;&lt;BR /&gt;option center ;&lt;BR /&gt;ods listing close ;&lt;BR /&gt;ods graphics on / reset=index imagename="TestSymbolChar4P0" height=10cm width=16cm noborder ;&lt;BR /&gt;ods html style=styles.journal2 image_dpi=150 gpath="&amp;amp;FigureRoot." path="&amp;amp;FigureRoot." (url=none) file="output.html" ;&lt;/P&gt;&lt;P&gt;*goptions reset=all ;&lt;BR /&gt;ods graphics / outputfmt=png ;&lt;BR /&gt;&lt;BR /&gt;proc sgrender data=WORK.PLOT template=TestSymbolChar description='' ;&lt;BR /&gt;dynamic XVar='DAY' YMean='GEOMEAN' YLowBound='LCLM' YUpBound='UCLM' ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;ods listing ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 10:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-Symbol-created-by-SymbolChar-statement-moving-on-Y-Axis/m-p/746978#M21672</guid>
      <dc:creator>mborne</dc:creator>
      <dc:date>2021-06-10T10:27:55Z</dc:date>
    </item>
    <item>
      <title>proc template/ proc sgrender graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-template-proc-sgrender-graph/m-p/748363#M21658</link>
      <description>&lt;P&gt;I was trying for a Cumulative Incidence graph. Please correct me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options nodate nonumber; 
data sj.data;
infile datalines dsd truncover;                                                                                                                                                          
input @1 SEQ 2. @4 ARMS $6. @10 armcode 2. @12 event 1. @14  mon 15. ;
datalines;					
01 Dose1 1 0 3.8107752956636
02 Dose1 1 0 2.66097240473062
03 Dose1 1 0 2.43101182654402
04 Dose1 1 0 2.20105124835742
05 Dose1 1 0 1.44546649145861
;

ods output survivalplot = kmdata;
proc lifetest data = test;
	time mon * event(1);
	strata arms;
run;

data kmdata2;
	set kmdata;
	survival2 = (1-survival);
	censor2 = (1-censored);
run;

proc template;
	define statgraph SurvivalPlot;
	begingraph / designwidth=8in designheight=5in;
	entrytitle 'Cumulative Incidence Graph'/ textattrs=(size=12);
	layout lattice;
	layout overlay / xaxisopts =(Label = "Months (Time)" type=linear labelattrs=(size=8pt weight=bold) tickvalueattrs=(size=9pt weight=bold) linearopts=(viewmin=0 viewmax=12 tickvaluelist=(0 2 4 6 8 10 12)))
		yaxisopts=(Label = "Cumulative Incidence" linearopts=(viewmin=0 viewmax=100) labelattrs=(size=8pt weight=bold) tickvalueattrs=(size=9pt weight=bold) linearopts=(viewmin=0 viewmax = 1.0 tickvaluelist=( 0.0 0.2 0.4 0.6 0.8 1.0)));
	stepplot x=mon y = survival2 / group=stratum  lineattrs=(thickness = 3.0 pattern=solid color = orange) name='s';
	scatterplot x=mon y = censor2 / GROUP=stratum name='c' markerattrs=(symbol=plus size=8);
	mergedlegend "c" "s" / location=inside halign=right valign=top order=columnmajor down=2 border=false valueattrs=(size=8pt) pad=(top=5 bottom=5);
	endlayout;
	layout overlay;
	entry halign=left 'N at Risk' /pad=(left=0 ) valign=bottom textattrs=(size=8pt);
	endlayout;
	blockplot x=tatrisk block=atrisk / class=stratum display=(values label) valuehalign=start valueattrs=(size=8) labelattrs=(size=8);
	endlayout;
	endgraph;
	end;
run;

proc sgrender data = kmdata2 template = survivalplot;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Here are warnings which are shown when I run my codes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;376        options nodate nonumber;
377        ods graphics on / noborder;
378        ods output survivalplot = kmdata;

381        proc lifetest data = test;
382        	time prog_mon * prog_event(1);
383        	strata arms;
384        run;

NOTE: The LOGLOG transform is used to compute the confidence limits for the 
      quartiles of the survivor distribution. To suppress using this transform, 
      specify CONFTYPE=LINEAR in the PROC LIFETEST statement.
NOTE: Variable Stratum already exists on file KMDATA, using Stratum2 instead.
NOTE: The homogeneity tests across strata were omitted since there is only one 
      stratum.
NOTE: The data set KMDATA has 6 observations and 8 variables.
NOTE: The PROCEDURE LIFETEST printed page 1.
NOTE: PROCEDURE LIFETEST used (Total process time):
      real time           2.41 seconds
      cpu time            0.11 seconds
      

385        
386        data kmdata2;
387        	set kmdata;
388        	survival2 = (1-survival);
389        	censor2 = (1-censored);
390        run;

NOTE: Missing values were generated as a result of performing an operation on 
      missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      6 at 389:14   
NOTE: There were 6 observations read from the data set KMDATA.
NOTE: The data set KMDATA2 has 6 observations and 10 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

391        
392        proc template;
393        	define statgraph SurvivalPlot;
394        	begingraph / designwidth=8in designheight=5in;
395        	entrytitle 'Cumulative Incidence Graph'/
395      ! textattrs=(size=12);
396        	layout lattice;
397        	layout overlay / xaxisopts =(Label = "Months (Time)"
397      ! type=linear labelattrs=(size=8pt weight=bold)
397      ! tickvalueattrs=(size=9pt weight=bold) linearopts=(viewmin=0
397      ! viewmax=12 tickvaluelist=(0 2 4 6 8 10 12)))
398        		yaxisopts=(Label = "Cumulative Incidence" linearopts=(viewmin=0
398      ! viewmax=100) labelattrs=(size=8pt weight=bold)
398      ! tickvalueattrs=(size=9pt weight=bold) linearopts=(viewmin=0 viewmax =
398      !  1.0 tickvaluelist=( 0.0 0.2 0.4 0.6 0.8 1.0)));
399        	stepplot x=mon y = survival2 / group=stratum
&amp;#12;The SAS System

399      ! lineattrs=(thickness = 3.0 pattern=solid color = orange) name='s';
400        	scatterplot x=mon y = censor2 / GROUP=stratum name='c'
400      ! markerattrs=(symbol=plus size=8);
401        	mergedlegend "c" "s" / location=inside halign=right valign=top
401      ! order=columnmajor down=2 border=false valueattrs=(size=8pt)
401      ! pad=(top=5 bottom=5);
402        	endlayout;
403        	layout overlay;
404        	entry halign=left 'N at Risk' /pad=(left=0 ) valign=bottom
404      ! textattrs=(size=8pt);
405        	endlayout;
406        	blockplot x=tatrisk block=atrisk / class=stratum display=(values
406      ! label) valuehalign=start valueattrs=(size=8) labelattrs=(size=8);
407        	endlayout;
408        	endgraph;
409        	end;
NOTE: Overwriting existing template/link: SurvivalPlot
NOTE: STATGRAPH 'SurvivalPlot' has been saved to: SASUSER.TEMPLAT
410        run;
NOTE: PROCEDURE TEMPLATE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

411        
412        proc sgrender data = kmdata2 template = survivalplot;
413        run;

WARNING: The stepplot statement named 's' will not be drawn because one or more 
         of the required arguments were not supplied.
WARNING: The scatterplot statement named 'c' will not be drawn because one or 
         more of the required arguments were not supplied.
WARNING: The blockplot statement will not be drawn because one or more of the 
         required arguments were not supplied.

WARNING: The stepplot statement named 's' will not be drawn because one or more 
         of the required arguments were not supplied.
WARNING: The scatterplot statement named 'c' will not be drawn because one or 
         more of the required arguments were not supplied.
WARNING: The blockplot statement will not be drawn because one or more of the 
         required arguments were not supplied.
NOTE: There were 6 observations read from the data set KMDATA2.
NOTE: PROCEDURE SGRENDER used (Total process time):
      real time           0.19 seconds
      cpu time            0.06 seconds
      
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Currently I am not getting anything in my graph.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let me know what exactly I am missing here&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 23:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-template-proc-sgrender-graph/m-p/748363#M21658</guid>
      <dc:creator>S_RAVI</dc:creator>
      <dc:date>2021-06-16T23:42:44Z</dc:date>
    </item>
    <item>
      <title>Can PROC GINSIDE test for points within overlapping polygons?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-PROC-GINSIDE-test-for-points-within-overlapping-polygons/m-p/747889#M21653</link>
      <description>&lt;P&gt;Recently ballardw helped me with a question about how to test whether points lie within a polygon using PROC GINSIDE.&lt;/P&gt;
&lt;P&gt;In the code below, I have modified the example code he provided to include a third polygon that overlaps the two he created for his example. Now, two points, #4 and #6, each lie within two polygons. Point #4 lies within polygons 1 and 3. Point # 5 lies within polygons 2 and 3. PROC GINISDE reports that these two points lies within polygon 1 and 2, respectively, but does not report that they are also within polygon 3.&lt;/P&gt;
&lt;P&gt;How can I modify the code so that PROC GINISDE correctly reports all polygons occupied by a point?&amp;nbsp; If possible, I would like to retain all the polygons within a single map file.&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help,&lt;/P&gt;
&lt;P&gt;Gene&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data examplemap;
   input id x y;
datalines;
1   0 0
1   0 10
1   5 15
1   8 10
1   8 0
1   0 0
2   12 12
2   12 20
2   18 20
2   18 12
2   12 12
3   3  9
3   3  19
3   16  19
3   16 9
3   3  9
;


data exampledata;
   input otherid x y;
datalines;
1  0  .5
2  1  4
3  0  20
4  4  12
5  10 10
6  13 14
7  20 1
;

proc ginside map =examplemap
             data=exampledata
             out =result
             includeborder
;
   id id;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jun 2021 17:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-PROC-GINSIDE-test-for-points-within-overlapping-polygons/m-p/747889#M21653</guid>
      <dc:creator>genemroz</dc:creator>
      <dc:date>2021-06-14T17:46:02Z</dc:date>
    </item>
    <item>
      <title>Regression Plot with Confidence 95% CI Bounds</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-with-Confidence-95-CI-Bounds/m-p/747031#M21647</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I need some assistance.&amp;nbsp; A simple linear regression script such as the following would give me a regression plot with 95% CI bounds on default&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (1).png" style="width: 646px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60219i30CFD66243F4FAA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (1).png" alt="Regression Plot" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Regression Plot&lt;/span&gt;&lt;/span&gt;.&lt;/P&gt;&lt;DIV&gt;Proc glm data= Tdata;&lt;/DIV&gt;&lt;DIV&gt;model LFTvalues = bckTrans_auc/ solution;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please how can I use &lt;STRONG&gt;Proc SGplot&lt;/STRONG&gt; to replicate exact same plot and have full control of things display like removing the title from the plot?&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-with-Confidence-95-CI-Bounds/m-p/747031#M21647</guid>
      <dc:creator>ugoagwup</dc:creator>
      <dc:date>2021-06-10T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Unicode symbol in data label attributes statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-symbol-in-data-label-attributes-statement/m-p/746706#M21644</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the vline statement below, I use character variable as datalabel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This character string now contains "National average"; instead of these characters I would like to use x-bar symbol here.&amp;nbsp;&lt;BR /&gt;What is the best way to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the unicode in this character variable, but as a result I just get the printed code (string of characters).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data leavetop;
set leavetop;
x2="National average= *"!!strip(round(x))!!"%";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempt with unicode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data leavetop;
set leavetop;
x2="(*ESC*){U+0304}"!!strip(round(x))!!"%";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the vline data label attribute statement I also changed the font to "GraphUnicodeText", but this didn't change much as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code of the graph:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=leavetop dattrmap=attrmap noautolegend;
panelby _NAME_/
		onepanel
		columns=1
		rows=1
		spacing=7 
		novarname 
		noborder 
		noheaderborder 
		skipemptycells
		uniscale=all
		headerbackcolor=white
		headerattrs=(color=black size=8 weight=bold family=arial);
vbar hosp/ group=countryid groupdisplay=cluster response=col2 attrid=category fill nooutline datalabel=col2 
					datalabelattrs=(color=black size=5 family=arial) DATALABELFITPOLICY=none name="include";

vline hosp /response=x lineattrs=(color=darkgrey pattern=solid thickness=2) group=countryid groupdisplay=overlay splitchar="*"
		datalabel=test datalabelpos=topright datalabelattrs=(size=5 color=black family=GraphUnicodeText) name="dropper" ;

vbar hosp/ group=countryid groupdisplay=cluster response=col2 attrid=category fillattrs=(transparency=1) nooutline datalabel=col2 
					datalabelattrs=(color=black size=5 family=arial) DATALABELFITPOLICY=none name="dropper2";

colaxis display=(noticks noline) label="Hospital" fitpolicy=rotate discreteorder=data offsetmin=0.02 offsetmax=0.02
        valueattrs= (family=arial
	                color=black
	                size=7.5
	                style=normal)
		labelattrs= (family=arial
	                color=black
	                size=9
	                style=normal
	                weight=bold);
rowaxis display=(noticks noline) label="Percent" fitpolicy=thin
		values=(0 to 100 by 20)
		valuesdisplay=("0%" "20%" "40%" "60%" "80%" "100%")
        valueattrs= (family=arial
	                color=black
	                size=7.5
	                style=normal)
        labelattrs= (family=arial
	                color=black
	                size=9
	                style=normal
	                weight=bold);
keylegend "include" /noborder autooutline autoitemsize valueattrs=(size=9 color=black family=arial weight=bold) titleattrs=(color=white) sortorder=ascending;
format _NAME_ $edutop.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions on how to work around this or alternatives are much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&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>Wed, 09 Jun 2021 10:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-symbol-in-data-label-attributes-statement/m-p/746706#M21644</guid>
      <dc:creator>sidello</dc:creator>
      <dc:date>2021-06-09T10:01:46Z</dc:date>
    </item>
    <item>
      <title>Forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot/m-p/746328#M21642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have created a forest plot as below. However I would like to make the below:&lt;/P&gt;&lt;P&gt;1) The CI bars in Green circle to be green in colour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) would need an&amp;nbsp; Arrow under the text 'Favours Control&amp;nbsp; &amp;nbsp; Favours TMT ' as shown with the red arrow .&lt;/P&gt;&lt;P&gt;My plot and the code attached belo:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manj_0-1623088584431.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60090i5123BBC1B41A463F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_0-1623088584431.png" alt="Manj_0-1623088584431.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;&lt;BR /&gt;data ip;&lt;BR /&gt;length col1 $20 grp $25 adjmn $20;&lt;/P&gt;&lt;P&gt;col1= 'Non-Dialysis';grp= 'Non-Dialysis';grpcd=1;catcd=1;obsid=14;Output;&lt;BR /&gt;col1= 'Incident Dialysis';grp= 'Incident Dialysis';grpcd=2;catcd=2;obsid=9;Output;&lt;BR /&gt;col1= 'Dialysis';grp= 'Dialysis';grpcd=3;catcd=3;obsid=6;Output;&lt;/P&gt;&lt;P&gt;col1= 'Non-Dialysis';&lt;BR /&gt;grp='study001 AXXAA-ND, OL, QD'; grpcd=1;catcd=1;obsid=13;&lt;BR /&gt;N_val= 'TMT 1801 Control 1799';&lt;BR /&gt;adjmn='0.01 (-0.10,0.11)';&lt;BR /&gt;low=-0.1;&lt;BR /&gt;high=0.11 ;&lt;BR /&gt;mean=0.01 ;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;col1= 'Non-Dialysis';&lt;BR /&gt;grp=' study001 ESA users'; grpcd=2;catcd=1;obsid=12;&lt;BR /&gt;N_val= 'TMT 1001 Control 1013';&lt;BR /&gt;adjmn='0.28 (-0.05,0.54)';&lt;BR /&gt;low=-0.05;&lt;BR /&gt;high=0.54 ;&lt;BR /&gt;mean=0.28;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;col1= 'Non-Dialysis';&lt;BR /&gt;grp=' study001 ESA non-users'; grpcd=3;catcd=1;obsid=11;&lt;BR /&gt;N_val= 'TMT 480 Control 470';&lt;BR /&gt;adjmn='-0.06 (-0.17,0.26)';&lt;BR /&gt;low=-0.17;&lt;BR /&gt;high=0.26 ;&lt;BR /&gt;mean=-0.06;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;col1= 'Incident Dialysis';&lt;BR /&gt;grp='study002 AXXAA-ID, OL, QD'; grpcd=4;catcd=2;obsid=8;&lt;BR /&gt;N_val= 'TMT 1481 Control 1483';&lt;BR /&gt;adjmn='0.23 (-0.01,0.47)';&lt;BR /&gt;low=-0.01;&lt;BR /&gt;high=0.47;&lt;BR /&gt;mean=0.23;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;col1= 'Dialysis';&lt;BR /&gt;grp='study003 AXXAA-D, OL, QD'; grpcd=5;catcd=3;obsid=5;&lt;BR /&gt;N_val= 'TMT 1481 Control 1483';&lt;BR /&gt;adjmn='0.23 (-0.01,0.47)';&lt;BR /&gt;low=-0.01;&lt;BR /&gt;high=0.47;&lt;BR /&gt;mean=0.23;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;col1= 'Dialysis';&lt;BR /&gt;grp=' study003 HD';&lt;BR /&gt;N_val= 'TMT 1001 Control 1013';grpcd=6;catcd=3;obsid=4;&lt;BR /&gt;adjmn='0.28 (-0.05,0.54)';&lt;BR /&gt;low=-0.05;&lt;BR /&gt;high=0.54 ;&lt;BR /&gt;mean=0.28;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;col1= 'Dialysis';&lt;BR /&gt;grp=' study003 PD';&lt;BR /&gt;N_val= 'TMT 480 Control 470';grpcd=7;catcd=3;obsid=3;&lt;BR /&gt;adjmn='-0.06 (-0.17,0.26)';&lt;BR /&gt;low=-0.17;&lt;BR /&gt;high=0.26 ;&lt;BR /&gt;mean=-0.06;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;col1= 'Dialysis';&lt;BR /&gt;grp='study004 AXXAA-TD, DB, TIW'; grpcd=8;catcd=3; obsid=1;&lt;BR /&gt;N_val= 'TMT 204 Control 203';&lt;BR /&gt;adjmn='0.23 (-0.01,0.47)';&lt;BR /&gt;low=-0.01;&lt;BR /&gt;high=0.47;&lt;BR /&gt;mean=0.23;&lt;BR /&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort;by catcd grpcd;run;&lt;/P&gt;&lt;P&gt;data ip;&lt;BR /&gt;set ip ;&lt;BR /&gt;if obsid in (1,5,6,8,9,13,14) then IndtWt=0;&lt;BR /&gt;else indtwt=1;&lt;/P&gt;&lt;P&gt;if obsid in (1,5,6,8,9,13,14 ) then id=1;&lt;BR /&gt;else id=2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data extra;&lt;BR /&gt;sid=16; low=-1.5; texta=' &amp;lt;------ Favours control '; high=0.5; textb=' Favours TMT ------&amp;gt;';output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data ip;&lt;BR /&gt;set ip extra;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*** CREATE FIGURE ***;&lt;BR /&gt;ods listing close;&lt;BR /&gt;ods pdf file="&amp;amp;g_outfile..&amp;amp;g_fontsize" nobookmarkgen style=idsl dpi=600 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data attrmap;&lt;BR /&gt;length textweight $10;&lt;BR /&gt;id='text'; value='1'; textcolor='Black'; textsize=7; textweight='bold'; output;&lt;BR /&gt;id='text'; value='2'; textcolor='Green'; textsize=6; textweight='normal'; output;&lt;BR /&gt;id='obsid'; value='3'; color='Green'; output;&lt;BR /&gt;id='obsid'; value='3'; symbolcolor='Green'; output;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=ip out=allnew;by catcd grpcd grp ;run;&lt;/P&gt;&lt;P&gt;proc sgplot data=ip nowall noborder nocycleattrs noautolegend dattrmap=attrmap;&lt;BR /&gt;styleattrs axisextent=data ;&lt;BR /&gt;highlow y=obsid low=low high=high/highcap=serif lowcap=serif attrid=obsid;&lt;BR /&gt;scatter y=obsid x=mean / markerattrs=(symbol=circlefilled size=7) attrid=obsid;&lt;BR /&gt;scatter y=obsid x=mean / markerattrs=(size=0) x2axis ;&lt;BR /&gt;refline 0 / axis=x lineattrs=(pattern=1);&lt;BR /&gt;refline 1.2 / axis=x lineattrs=(pattern=3);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;yaxis display=none colorbands=odd colorbandsattrs=(transparency=1) offsetmin=0.02;&lt;BR /&gt;x2axis display=(noline noticks novalues nolabel) labelattrs=(size=8);&lt;BR /&gt;xaxis values=(-2 -1 0 1 2) labelattrs=(size=8) labelattrs=(size=8);&lt;BR /&gt;*TEXT x=low y=sid text=texta / textattrs=(size=8 weight=normal) ;&lt;BR /&gt;* TEXT x=high y=sid text=textb / textattrs=(size=8 weight=normal) ;&lt;BR /&gt;&lt;BR /&gt;x2axis label='&amp;lt;-------Favours Control Favours tmt --------&amp;gt;' display=(noline noticks novalues) labelattrs=(size=9 weight=bold);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;yaxistable grp / location=inside position=left labelattrs=(size=9 weight=bold) valueattrs=(size=9 ) textgroup=id textgroupid=text indentweight=IndtWt label=' ' labelhalign=left;&lt;BR /&gt;yaxistable N_val / location=inside position=left labelattrs=(size=9 weight=bold) valueattrs=(size=9 ) label='N ' textgroup=id textgroupid=text labelhalign=center;&lt;BR /&gt;yaxistable adjmn / location=inside position=left pad=(left=15px right=15px) labelattrs=(size=9 weight=bold) textgroup=id textgroupid=text label='Adj. Mean Hgb difference (95% CI) ' labelhalign=left valueattrs=(size=9);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;BR /&gt;ods listing;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 17:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot/m-p/746328#M21642</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-06-07T17:58:16Z</dc:date>
    </item>
    <item>
      <title>Create a polygon and test whether point(s) lie within?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-a-polygon-and-test-whether-point-s-lie-within/m-p/745309#M21618</link>
      <description>&lt;P&gt;I need to create a polygon and test whether a number of points lie within.&amp;nbsp; I've created the polygon&amp;nbsp; (from lat/long coordinates transformed to a Cartesian xy grid)&amp;nbsp; using the POLYGON function available in the&amp;nbsp; SG Annotation Function Dictionary.&amp;nbsp; But I don't know how to test whether a x,y point lies within or without.&amp;nbsp; Will PROC GINSIDE accept a polygon generated by the Polygon Function?&amp;nbsp; It seems dubious given that the annotation function is about drawing and not about "mapping" as seems to be a requirement for PROC GINSIDE.&amp;nbsp; Looking for some guidance on how best to proceed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gene&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 20:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-a-polygon-and-test-whether-point-s-lie-within/m-p/745309#M21618</guid>
      <dc:creator>genemroz</dc:creator>
      <dc:date>2021-06-02T20:06:23Z</dc:date>
    </item>
    <item>
      <title>PROC template Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-template-Graph/m-p/745255#M21611</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adeoye_0-1622655259359.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59974i459C449708519028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adeoye_0-1622655259359.png" alt="Adeoye_0-1622655259359.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have attached the data if it would be useful in your helping me achieve this task.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Selected; 
	Set mylibrary.Mean_Comparison_Proc;
	Period2 = input(Period, 2.);
	Drop Period;
	rename Period2=Period;
run;
Proc Sort Data=Selected;
	by resp_name Treatment Period;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I created the above individual graphs using SGPLOT within a macro, with the below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Sql noprint;
	select count(distinct resp_name) into :obs from Selected;
	select distinct resp_name into :resp1-:resp5 from Selected;
Quit;

%Macro TestSee;
	%do i = 1 %to &amp;amp;obs;
		%Let value1=(650 to 750 by 10); %Let value2=(1.0 to 2.0 by 0.1); %Let value3=(1 to 2.0 by 0.1); %Let value4=(2 to 5 by 0.1); %Let value5=(35 to 45 by 1);
		%Let ylabel1=BW, kg; %Let ylabel2=ECM/DMI, kg/kg; %Let ylabel3=Milk Fat Yield, kg; %Let ylabel4=Milk Fat Percentage, %; %Let ylabel5=Milk Yield, kg;
		%Let xlabel=Week of Trial;
		proc format;
		value $treatmentFmt
		"Bov" = "PRO-A"
		"BovC" = "PRO-B"
		"Control" = "CON" 
		;
		ods html style=listing; *In SAS 9.4 you need a style like LISTING to see different symbols;
		Proc SGPLOT data = Selected noautolegend;
			format treatment $treatmentFmt.;
			where resp_name="&amp;amp;&amp;amp;resp&amp;amp;i";
			styleattrs datasymbols=(CircleFilled triangleFilled SquareFilled) datalinepatterns=(ShortDash Solid MediumDash) datacontrastcolors=(darkblue darkred darkgreen); 
			Series x=Period y=estimate/ group=Treatment grouplc=Treatment groupmc=Treatment markers lineattrs=(thickness=1) name="Treatment";
			Scatter x=Period y=estimate/ group=Treatment name="a" YErrorUpper=Upper YErrorLower=Lower;*groupdisplay=cluster clusterwidth=0.6 datalabel=MSgroup datalabelattrs=(size=9pt color=gray);
			yaxis label="&amp;amp;&amp;amp;ylabel&amp;amp;i" Labelattrs=(Family=Arial Size=11 weight=Bold ) valueattrs=(size=10) values=&amp;amp;&amp;amp;value&amp;amp;i;
			xaxis discreteorder=data label="&amp;amp;xlabel." Labelattrs=(Family=Arial Size=11 weight=Bold ) valueattrs=(size=10) values=(1 to 12 by 1);
			keylegend "Treatment"/ title="Treatment:" location=inside position=topright across=1;
		run;
 	%end;
		Ods html CLOSE;
 %mend;
%TestSee;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What i however need is a grid of all 5 graphs with independent axis, all labelled as i did with the above graph. I did research on Proc template and it seems it could really do the job for me, but i still couldn't figure out how to make this work. I will really appreciate your help guys. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 15:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-template-Graph/m-p/745255#M21611</guid>
      <dc:creator>Adeoye</dc:creator>
      <dc:date>2021-06-03T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Superscript in format for SGPLOT value labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-format-for-SGPLOT-value-labels/m-p/744982#M21598</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have defined a FORMAT that uses unicode superscripts:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	proc format;
		value agegroupfr 	1="1(*ESC*){super re} fois"
							2="2(*ESC*){super e} fois ou plus"
							3="18–24"
							4="25–34"
							5="35–44"
							6="45–54"
							7="55–64"
							8="65–74"
							9="75+"
							10="Toutes";
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I want to use this format to be used to label values on the y-axes of a butterfly plot. Here is the portion of the code where I define the y-axes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	 	yaxis reverse
		 	display=(noticks)
		 	valueattrs=(color=gray33 size=10pt family="Arial Unicode MS")
		 	labelposition=top
		 	colorbands=odd colorbandsattrs=(color=grayf3)
		 	label="&amp;amp;aglab."
		 	valuesformat=&amp;amp;agfmt.;
		y2axis reverse
			type=discrete
		 	display=(noticks)
		 	valueattrs=(color=gray33 size=10pt family="Arial Unicode MS")
		 	labelposition=top
		 	label="&amp;amp;aglab."
		 	valuesformat=&amp;amp;agfmt.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The result is not what I expected:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot31.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59932i649E8E558C8AA760/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot31.png" alt="SGPlot31.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have tried several solutions proposed in this forum, but with no effect. What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-format-for-SGPLOT-value-labels/m-p/744982#M21598</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2021-06-01T16:01:08Z</dc:date>
    </item>
    <item>
      <title>SGPLOT change y axis label based on values of By variable.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-change-y-axis-label-based-on-values-of-By-variable/m-p/744337#M21583</link>
      <description>&lt;P&gt;Hi, I would like to use SGPLOT to create multi graphs using By-variable statement&lt;/P&gt;&lt;P&gt;- My code is like that:&lt;/P&gt;&lt;P&gt;Proc sgplot data=database;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; by&amp;nbsp;Symptom;&lt;/P&gt;&lt;P&gt;scatter x=VisitNum y=Mean / groupdisplay=cluster&amp;nbsp;group= Treatment;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;- This is some of the graphs created:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59827i5684C058F4407C14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="123.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59830iAE53F98CEDB15C1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="123.png" alt="123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My question is how could I change the label in the y axis to the name of variable (in this case: Symp1S Symp2S instead of Mean).&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 06:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-change-y-axis-label-based-on-values-of-By-variable/m-p/744337#M21583</guid>
      <dc:creator>James_Yu</dc:creator>
      <dc:date>2021-05-28T06:38:18Z</dc:date>
    </item>
    <item>
      <title>SGPLOT HEATMAP colormap labels/values size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-HEATMAP-colormap-labels-values-size/m-p/743954#M21565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using PROC SGPLOT with HEATMAP and I would like to change the size of the colormap values.&lt;/P&gt;
&lt;P&gt;Here is my code and the resulting plot:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT data=  MARTA.mydata;
heatmap x=clocktime y=myvariable / colorresponse=aaa  colorstat=mean colormodel=(bigb red) xbinsize=0.25 ;
xaxis label='Clock time' values=(9 to 18 by 1) valueattrs=(size=14pt) labelattrs=(size=14pt);
yaxis label='My variable' valueattrs=(size=14pt) labelattrs=(size=14pt);
gradlegend / title='colormap' titleattrs=(size=14pt)  ;
run;
&lt;/CODE&gt;&lt;/PRE&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="Screenshot 2021-05-26 at 18.42.53.png" style="width: 541px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59779i3DC625A3315FAC44/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-05-26 at 18.42.53.png" alt="Screenshot 2021-05-26 at 18.42.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My problem seems to be simple but I can not find the solution. The values of the colormap are smaller compared to the other labels and values on the axes.&lt;/P&gt;
&lt;P&gt;How to set such values to 14pt?&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 16:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-HEATMAP-colormap-labels-values-size/m-p/743954#M21565</guid>
      <dc:creator>marta25</dc:creator>
      <dc:date>2021-05-26T16:46:10Z</dc:date>
    </item>
    <item>
      <title>What is the explanation behind the limited graphical capabilities of SAS?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/What-is-the-explanation-behind-the-limited-graphical/m-p/743770#M21559</link>
      <description>&lt;P&gt;I am a Ph.D. in medicine and have used SAS for a year and a half now. When starting my studies, I had to choose between SAS and R. The research-community in medicine in Denmark is split roughly 50/50 in SAS and R-users, with young, new users tending to choose R due to it being Open Source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I chose SAS because most people at my department used it and it seemed like an easy way to get going. I have previous experience from Python, but wanted an easy start from the get-go. Now, SAS is very intuitive for data-management and most statistics (although the syntax for a statement like CONTRAST in Phreg is very unintuitive compared to the R-alternative).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have grown to like SAS a lot, and therefore it both baffles and hurts me, that the graphical capabilities are so inferior to R. I hate having to export my datasets to be able to do what in R takes half an hour, but in SAS takes several hours and obscure code. I am sure that this is one of the reasons that SAS is loosing foothold in this battle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How come a company with so big economic muscles and market-dominance doesn't prioritize this aspect of the program? Why can't you output vector-formats easily for editing in other programs? Why isn't there a wizard or some easy code, that recognizes all the typical objects you want to be able to manipulate, when having created a graph? I mean most of these functions are from a coding-perspective not that advanced compared to all the other mechanisms in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that this side of the program will get some more attention - and a fresh new Googly/Apply-approach in the future!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 08:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/What-is-the-explanation-behind-the-limited-graphical/m-p/743770#M21559</guid>
      <dc:creator>Malthe</dc:creator>
      <dc:date>2021-05-26T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Help with YAXIS Ranges= option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-YAXIS-Ranges-option/m-p/743574#M21554</link>
      <description>&lt;P&gt;Can someone please help me with the ranges option in the following code?&amp;nbsp; It is not yielding the expected result of limiting the yaxis data to the range of 60 to 100%.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gene&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data data;
input LOHI $ k3_6 Group $;
datalines;
36/0 90.18 RoOPT
39/0 93.31 RoOPT
39/41 94.55 RoOPT
39/43 95.21 RoOPT
39/45 95.79 RoOPT
39/47 95.58 RoOPT
39/49 95.60 RoOPT
39/51 94.85 RoOPT
39/53 95.12 RoOPT
39/55 95.43 RoOPT
39/59 96.02 RoOPT
39/61 96.29 RoOPT
39/63 96.52 RoOPT
39/65 96.88 RoOPT
39/67 96.78 RoOPT
39/69 96.84 RoOPT
39/71 96.85 RoOPT
36/0 66.59 RoCOV
39/0 72.53 RoCOV
39/41 72.87 RoCOV
39/43 73.22 RoCOV
39/45 73.52 RoCOV
39/47 71.02 RoCOV
39/49 69.95 RoCOV
39/51 70.65 RoCOV
39/53 70.79 RoCOV
39/55 70.95 RoCOV
39/59 71.25 RoCOV
39/61 71.39 RoCOV
39/63 71.51 RoCOV
39/65 71.59 RoCOV
39/67 71.64 RoCOV
39/69 71.67 RoCOV
39/71 71.68 RoCOV
;
ods graphics / reset width=6.4in height=4.8in imagemap;

proc sgplot data=WORK.DATA;
title "Sensitivity of Optimization Results to Elevation Angle";
title2 "Region of Optimization (RoOPT): 440km by 440km";
title3 'Region of Coverage (RoCOV): All Gridpoints where k GE 1';

	vbar LOHI / response=k3_6 group=group groupdisplay=cluster;
	yaxis grid ranges=(60-100);
	xaxis label="LO/HI Elevation Angles";
	yaxis label="Gridpoints Covered by 3-6 Stations (%)";
run;

ods graphics / reset;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 May 2021 14:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-YAXIS-Ranges-option/m-p/743574#M21554</guid>
      <dc:creator>genemroz</dc:creator>
      <dc:date>2021-05-25T14:59:04Z</dc:date>
    </item>
    <item>
      <title>proc sgmap - removing white padding around edge of image</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgmap-removing-white-padding-around-edge-of-image/m-p/743080#M21546</link>
      <description>&lt;P&gt;I've been working with proc sgmap to generate some plots that are meant to be included in some printed material, and I'm trying to get rid of the white border around the edge of the plots.&amp;nbsp; The images are being handed off to someone working in our communications department who's using a separate piece of software to format and typeset the printed materials, and I need to provide them with the images at a pre-defined resolution and DPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the DPI of the overall image working just fine, and can turn off the titles/legends/borders without issue, but I've gotten completely stuck trying to make the whitespace go away.&amp;nbsp; I got as far as experimenting with proc template and defining new styles, but I couldn't figure out how to make any of the pieces take effect.&amp;nbsp; Currently I'm falling back on batch processing the images locally to trim the whitespace, but it would be much easier if I could just generate them without the whitespace in the first place, so I don't have to do some extra work to find how much is getting trimmed off (especially if I need to change the DPI, and the number of pixels being trimmed will change).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I can't share my data, but here's some code that illustrates the issue.&amp;nbsp; It just draws a black box around Texas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data work.ChoromapData;
	infile datalines delimiter=" ";
	input x y id $;
	datalines;
-94 25 Texas
-94 37 Texas
-106 37 Texas
-106 25 Texas
-94 25 Texas
;
run;
&lt;BR /&gt;ods listing gpath="/home/my_user/" device=png;
ods graphics on / height=500 width=500 noborder;
proc sgmap mapdata=work.ChoromapData;
    openstreetmap; 
    choromap;
run;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;The images I get out look like this.&amp;nbsp; I've colored the whitespace around the edge a bright red, so it's easier to see against the forum background, but it's white in my program's output.&amp;nbsp; Normally this would be the region between the map and the thin border that surrounds the whole image (but I've turned the border off with the ods graphics statement).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum demo.png" style="width: 250px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59678i6DF7420B3FA39AA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum demo.png" alt="forum demo.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is this (note the lack of whitespace around the edges):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trimmed.png" style="width: 240px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59679iC072B7FC0943A5A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="trimmed.png" alt="trimmed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to get this sorted out for a few days now but have made zero progress.&amp;nbsp; Anyone have any ideas/solutions that maybe I've just not come across yet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Technical details: I'm working in Enterprise Guide 8.3, and SAS version 9.4M7 (full version number: 9.04.01M7P080520).&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 23:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgmap-removing-white-padding-around-edge-of-image/m-p/743080#M21546</guid>
      <dc:creator>andersonh</dc:creator>
      <dc:date>2021-05-21T23:05:35Z</dc:date>
    </item>
    <item>
      <title>proc gmap : zoom part of map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-zoom-part-of-map/m-p/742954#M21544</link>
      <description>&lt;P&gt;I am tring to zoom this part of the map with data so that labels will fit in, also to enable proper visaulisation. I am using&amp;nbsp;&lt;SPAN&gt;proc gproject but can't really get this working.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-zoom-part-of-map/m-p/742954#M21544</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-21T16:37:41Z</dc:date>
    </item>
    <item>
      <title>Proc gmap: displaying symbols for graph region</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-displaying-symbols-for-graph-region/m-p/742949#M21543</link>
      <description>&lt;P&gt;How can I&amp;nbsp; display location symbols on the regions?&amp;nbsp; some region names were not displayed, I think because of the tiny space. Is there any way to solve that?&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-displaying-symbols-for-graph-region/m-p/742949#M21543</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-21T16:31:14Z</dc:date>
    </item>
    <item>
      <title>How to add a symbol just for one group in sgplot for Hbox</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-symbol-just-for-one-group-in-sgplot-for-Hbox/m-p/742834#M21531</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used sgplot to get hbox. I want to make one hbox (eg. the top bar) is different to show that is a specific case. Either to put a star aside the box or make the color different. Both I did not find how to make it. Hope some one can help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The graph looks like:&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="SGPlot18.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59651i6A2D80F69559C542/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot18.png" alt="SGPlot18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=Caterpillar_graph noautolegend noborder;
hbox VAS_preop / category=surgeon_id nocaps extreme fillattrs=(color=CXE7AF19) WHISKERATTRS=(color=black) MEDIANATTRS=(color=CX2D3884 thickness=8) nomean;
refline 75 /axis=x lineattrs=(color=CX2D3884) LEGENDLABEL= "National Median" name='line';
refline '*'/axis=x;
yaxis label = "Individual Surgeon" display=(novalues noticks) labelattrs=(size=10pt FAMILY="Segoe UI Symbol") DISCRETEORDER=DATA;
xaxis label = "VAS" labelattrs=(size=10pt FAMILY="Segoe UI Symbol")  values = (0 to 100 by 10);
keylegend "line" ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 06:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-symbol-just-for-one-group-in-sgplot-for-Hbox/m-p/742834#M21531</guid>
      <dc:creator>Andrea_Peng</dc:creator>
      <dc:date>2021-05-21T06:46:31Z</dc:date>
    </item>
    <item>
      <title>proc gmap: color gradient shading</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-color-gradient-shading/m-p/742835#M21527</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;am tring to use color grading shades&amp;nbsp; for the map I created but it's not showing any results. Am not sure if I have missing anything in my code. I will appreciate any help&lt;/P&gt;
&lt;PRE&gt;proc template;
define style styles.grad1;
parent=styles.listing;
style threecolorramp /startcolor=cream endcolor=darkblue;
end;
run;

proc gmap data=mydata map=mapsgfk.germany all; 
id id;
choro cases / statistic=first discrete 
levels=4
coutline=gray anno=myanno
cdefault=CXFFFFFF
legend=legend1;
run;
quit;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 May 2021 06:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-color-gradient-shading/m-p/742835#M21527</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-21T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Patient flow Sankey Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Patient-flow-Sankey-Diagram/m-p/742092#M21521</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I wanted to create this nice graph created by&amp;nbsp;&lt;LI-USER uid="13856"&gt;&lt;/LI-USER&gt;&amp;nbsp; as shown on these links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/10/27/outside-the-boxcircle-link-graph/#prettyPhoto" target="_blank"&gt;Outside-the-box: Circle link graph - Graphically Speaking (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/11/01/outside-box-directed-circle-link-graphs/" target="_blank"&gt;Outside-the-box: Directed circle link graphs - Graphically Speaking (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have a data of patients who visit a certain clinic, I will like to display this just like in the links above but vice-versa. This means in my case they are moving from their residents to the clinic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the method&amp;nbsp;&amp;nbsp;@Jay54 used but I still need some help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data patientflow;
  input From $18. To $8. LinkCount ;
  datalines;
AAAAAAAAAAAAAAAAA   clinic	11
BBBBBBBBBBBBBBB	    clinic	5
DDDDDDDDDDDD	            clinic	30
EEEEEEEEEEEEEEEEE   clinic	2
FFFFFFFFFFFFF	            clinic	7
GGGGGGGGGGGGGG	   clinic	2
HHHHHHHHHHHHH	   clinic	11
IIIIIIIIIIIIIIII                           clinic	2
JJJJJJJJJJJJJJJJJ            clinic	25
KKKKKKKKKKKKKKK	   clinic	2
LLLLLLLLLLLLLLL	           clinic	 1
MMMMMMMMMMMM	   clinic	48
NNNNNNNNNNNNNN	   clinic	1
OOOOOO(clinic location)    clinic	500
PPPPPPPPPPPPP	           clinic	1
QQQQQQQQQQQQQQ	   clinic	3
RRRRRRRRRRRRRRR    clinic	1
SSSSSSSSSSSSSSSSS  clinic	1
TTTTTTTTTTTTTT	           clinic	1
UUUUUUUUUUUUUUU	   clinic	3
VVVVVVVVVVVVV	            clinic	7
WWWWWWWWWW	   clinic	7
XXXXXXXXXXXXXXX	   clinic	165
;
run;&lt;/PRE&gt;
&lt;P&gt;please note that&amp;nbsp;OOOOOO is the region where the clinic is located that is the reason why the number of cases is in this region very high.&amp;nbsp; The names of the regions are quite long and the arrows should be coming from the different regions and ending at OOOOOO&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anita_n_0-1621328587044.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59535i66D323368582F853/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anita_n_0-1621328587044.png" alt="Anita_n_0-1621328587044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will appreciate any help or an alternative solution.&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 09:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Patient-flow-Sankey-Diagram/m-p/742092#M21521</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-18T09:06:57Z</dc:date>
    </item>
    <item>
      <title>how to add tick marks with date variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742029#M21518</link>
      <description>&lt;P&gt;Hi, I am very beginner in SAS. I have date variable and&amp;nbsp; 'daily COVID cases' variable.&lt;/P&gt;&lt;P&gt;When I make sgplot (xaxis=date and yaxis=# of cases), I only get a few tick marks on x axis. I want to add tick marks for each day. I have been searching to solve this problem for 4 days but none of article worked or I couldn't understand their explanations.....again I am very beginner, please explain basic details if you can.. Thank you so much.&lt;/P&gt;&lt;P&gt;This is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should be fixed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=after;
series x=date y=New_cases_fu;
xaxis interval=day label=' ' values=('08JUL2020'd to '16sep2020'd by 1) ;
yaxis label=" New cases";
RUN;

&lt;/CODE&gt;&lt;/PRE&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="Screen Shot 2021-05-17 at 6.27.15 PM.png" style="width: 626px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59529iF96C3C1A75868B58/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-17 at 6.27.15 PM.png" alt="Screen Shot 2021-05-17 at 6.27.15 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 22:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-add-tick-marks-with-date-variable/m-p/742029#M21518</guid>
      <dc:creator>htst1003</dc:creator>
      <dc:date>2021-05-17T22:39:04Z</dc:date>
    </item>
    <item>
      <title>Remove bar chart tick labels but not ticks</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-bar-chart-tick-labels-but-not-ticks/m-p/741457#M21516</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using SGPlot to plot a bar chart from a dataset that gets updated once a week with a new observation for a total number of events that week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The x-axis is getting crowded so I'd like to display the text label for every other axis tick, but keep all the bars. I've tried using the values= option but that removes the bars as well as the tick labels. I've also tried using the FITPOLICY=thin option, which is closer to what I want as it removes tick labels but keeps the data. But that doesn't keep enough of the x axis ticks and removes the most recent tick label which is most important.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me out?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=set5 noborder noautolegend;
yaxis label = 'Number' valueattrs=(size=10pt) LABELATTRS=(size=10pt) values=(0 to 100 by 5);
xaxis label = 'Week' valueattrs=(size=7pt) LABELATTRS=(size=6pt) values=(1 to &amp;amp;max_week by 2);
vbar week / datalabel datalabelfitpolicy=none datalabelattrs=(size=8) fillattrs=(color='CX0066CC');
format week donweek.;&lt;BR /&gt;title1 h=12pt j=left "Figure 2";&lt;BR /&gt;keylegend/ title=" ";&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 May 2021 14:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-bar-chart-tick-labels-but-not-ticks/m-p/741457#M21516</guid>
      <dc:creator>RoddyJ</dc:creator>
      <dc:date>2021-05-14T14:38:38Z</dc:date>
    </item>
    <item>
      <title>3D Barchart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/3D-Barchart/m-p/741093#M21501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is the graph Im looking forward to create. Not really sure if this is one x axis and 2 yaxes Or 2 X axes and 1 Y axis.&amp;nbsp; Can anyone show some light towards this?&amp;nbsp; Any documentation shows a method to do this?&lt;/P&gt;&lt;P&gt;Thanks&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="Manj_0-1620911980118.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59313i1AA6C74026170492/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_0-1620911980118.png" alt="Manj_0-1620911980118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/3D-Barchart/m-p/741093#M21501</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-05-13T13:22:39Z</dc:date>
    </item>
    <item>
      <title>Extracting Plots from procedure output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Extracting-Plots-from-procedure-output/m-p/740886#M21499</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When i run the following code, i got in the output multiple&amp;nbsp; plots.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ttest data=sashelp.class plots=all;
class sex; 
var age;  
title 'ttest of equality of means'; 
run; 
title;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to extract the plots and put some of them in the table two-by-two table. Can i do it?&lt;/P&gt;&lt;P&gt;I know that&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ODS OUTPUT destination enables to store any value that is produced by any SAS procedure(ods trace), but what about plots?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Extracting-Plots-from-procedure-output/m-p/740886#M21499</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2021-05-12T17:42:24Z</dc:date>
    </item>
    <item>
      <title>Horizontal barchart with axis table, Labels won't align</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Horizontal-barchart-with-axis-table-Labels-won-t-align/m-p/740733#M21497</link>
      <description>&lt;P&gt;I'm trying to create a horizontal barchart with a label above the y-axis values (left aligned) and also a label above the bars (left aligned).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andypandy_swe_0-1620800443182.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59264i253C5E94B86BF27A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andypandy_swe_0-1620800443182.png" alt="andypandy_swe_0-1620800443182.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a simple GTL&amp;nbsp; barchart I can get the "unit" label but couldn't get the "Some measurement" label above the bars (only at the bottom of the bars) so i figured I'd try and put the y-axis values and the "unit" label in an axistable. So I created a layout lattice with two layout overlays in it, one for the axistable (showing values and label) and one for the barchart (showing only the label). However as seen above the two labels won't align. The label for the axistable is higher than the label for the barchart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my question is:&lt;/P&gt;
&lt;P&gt;Is it possible to get the x-axis label on top of the bars aligned with the y-axis label (and skip the axistable) or&lt;/P&gt;
&lt;P&gt;keep the axistable and somehow align not only the axistable/barchart values but also the labels?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The template needs to accomodate diffrent number of bars (and thereby different graph heights) so using drawtext isn't really an option (as far as I can see)..&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 06:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Horizontal-barchart-with-axis-table-Labels-won-t-align/m-p/740733#M21497</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2021-05-12T06:43:23Z</dc:date>
    </item>
    <item>
      <title>Fun With SAS ODS Graphics: MOM-WOW Mother's Day Card</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-MOM-WOW-Mother-s-Day-Card/m-p/739945#M21495</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="momwow.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59157iB088F73FABCC8C39/image-size/large?v=v2&amp;amp;px=999" role="button" title="momwow.png" alt="momwow.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick SAS ODS Graphics text/scatter plot take on those &lt;A href="https://mmediminie.commons.hwdsb.on.ca/2020/05/06/thursday-may-7th/" target="_self"&gt;MOM-WOW cards&lt;/A&gt;. Happy Mother's Day, all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: MOM-WOW Mother's Day Card
  Mother icon by DewDrops on @NounProject thenounproject.com/term/mother/851501
  Mother's Day color palette from codeofcolors.com/mothers-day-colors.html;

data mom;                                                                                           * Generate points and text for card;
retain x y 0 text 'MOM' x2 0 y2 .87;                                                                * Text to display and x/y points;
                                                                                                    * x,y="MOM" x2,y2=Mother icon;
ods graphics / reset height=5in width=5in antialias;                                                * 5"x5" image (good enough for Twitter!);
proc sgplot data=mom aspect=1 noborder noautolegend nowall;                                         * Generate MOM-WOW Mother's Day card (text/scatter plots);
styleattrs backcolor=cxFEE8DA;                                                                      * Specify background fill color;
symbolimage name=mom image='/folders/myfolders/motherchild.png';                                    * Mother icon; 
scatter x=x2 y=y2 / markerattrs=(symbol=mom size=34pt);                                             * Scatter plot w/mother icon marer; 
text x=x y=y text=text / textattrs=(color=cxE25B6A size=108pt weight=bold) position=top contributeoffsets=none; * MOM; 
refline 0 / axis=y lineattrs=(color=cx651B0E thickness=3pt);                                        * Line separator at 0;
text x=x y=y text=text / textattrs=(color=cxFFAEAA size=108pt weight=bold) rotate=180 position=top contributeoffsets=none; * WOW (MOM "reflection"); 
inset " HAPPY MOTHER'S DAY " / position=bottom textattrs=(color=cx651B0E size=22pt weight=bold);    * HAPPY MOTHER'S DAY;
xaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;                                            * Specify x/y axes ranges, hide axes;
yaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 04:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-MOM-WOW-Mother-s-Day-Card/m-p/739945#M21495</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-05-08T04:06:16Z</dc:date>
    </item>
    <item>
      <title>Bar plot, To present symbol (Star, Plus sign) on X-axis For specific bars (separate variable)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-plot-To-present-symbol-Star-Plus-sign-on-X-axis-For-specific/m-p/739726#M21493</link>
      <description>&lt;P&gt;I am having simple Bar plot. See below code. In SCORE dataset for name "LMN" doesn't have any marks. I want to present star(*) at the x-axis below tickvalues (I can hide tickvalues).&lt;/P&gt;&lt;P&gt;Any thoughts How to present Star(*) at axis, indicating it is different from dataset row having no values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data score;&lt;/P&gt;&lt;P&gt;input name $1-3 marks 5.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;abc 50&lt;/P&gt;&lt;P&gt;bcd 70&amp;nbsp;&lt;/P&gt;&lt;P&gt;LMN&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;kgh 90&lt;/P&gt;&lt;P&gt;uyt 10&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;define statgraph temp;&lt;/P&gt;&lt;P&gt;begingraph;&lt;/P&gt;&lt;P&gt;layout overlay;&lt;/P&gt;&lt;P&gt;barchart x=name y=score;&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;endgraph;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgrender data=score template=temp;&lt;/P&gt;&lt;P&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="Sagarg_0-1620379963008.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59127i73D821FFF2AFD47D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sagarg_0-1620379963008.png" alt="Sagarg_0-1620379963008.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;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 09:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-plot-To-present-symbol-Star-Plus-sign-on-X-axis-For-specific/m-p/739726#M21493</guid>
      <dc:creator>Sagarg</dc:creator>
      <dc:date>2021-05-07T09:33:49Z</dc:date>
    </item>
    <item>
      <title>"Ask the Expert” webinar entitled How Do I Fix Common Problems in Output From ODS Graphics?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/quot-Ask-the-Expert-webinar-entitled-How-Do-I-Fix-Common/m-p/739223#M21489</link>
      <description>&lt;P&gt;Hi SAS Graphics Programming Community,&lt;/P&gt;
&lt;P&gt;I’m presenting a live “Ask the Expert” webinar on May 11&lt;SUP&gt;th&lt;/SUP&gt;, 10 – 11 AM ET entitled &lt;EM&gt;How Do I Fix Common Problems in Output From ODS Graphics? &lt;/EM&gt;&lt;SPAN&gt;Join this webinar to learn the common pitfalls when using ODS Graphics procedures and how to avoid those issues in the future. I’ll also discuss ways to improve the overall appearance of a graph by using attribute maps or adding special symbols. &lt;/SPAN&gt;I’ll host a live Q&amp;amp;A session at the end of the webinar.&lt;/P&gt;
&lt;P&gt;You will learn:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How to get your desired colors and symbols in the graph output.&lt;/LI&gt;
&lt;LI&gt;How to place annotation on a graph.&lt;/LI&gt;
&lt;LI&gt;How to improve the overall look of your graph output. the advanced features of SAS survey procs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.sas.com/gms/redirect.jsp?detail=GMS161358_226484" target="_blank"&gt;Reserve your spot&lt;/A&gt; for the webinar.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Want more tips? Be sure to subscribe to the&amp;nbsp;&lt;A href="http://communities.sas.com/askexpert" target="_blank"&gt;Ask the Expert board&lt;/A&gt;&amp;nbsp;to receive follow up Q&amp;amp;A, slides and recordings from this and other SAS Ask the Expert webinars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't join the live event? You can view this and other&amp;nbsp;&lt;A href="http://support.sas.com/training/askexpert.html" target="_blank"&gt;Ask the Expert sessions on-demand here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marcia&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/quot-Ask-the-Expert-webinar-entitled-How-Do-I-Fix-Common/m-p/739223#M21489</guid>
      <dc:creator>MarciaS</dc:creator>
      <dc:date>2021-05-05T14:27:44Z</dc:date>
    </item>
    <item>
      <title>SGPlot annotation on a grouped VBAR plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-annotation-on-a-grouped-VBAR-plot/m-p/738126#M21480</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having some trouble displaying annotated data on a grouped VBAR. Example code below.&lt;/P&gt;&lt;P&gt;I want to display an 'x' at the bottom of each Bar, i.e. the position of the 'x' is tied to the data value of each bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I run I get the following Warning and the 'x' is not displayed on the output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; WARNING: DrawText statement has missing/invalid value for position (X or Y). Draw statement discarded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data data1;
 length genx genid $ 10;
  genx = 'GRP1';
  genid = 'HRD1'; d1=15; output;
  genid = 'HRD2'; d1=23; output;
  genid = 'HRD3'; d1=5; output;
  genid = 'HRD4'; d1=35; output;
  genx = 'GRP2';
  genid = 'NONHRD1'; d1=43; output;
  genid = 'NONHRD2'; d1=28; output;
  genid = 'NONHRD3'; d1=26; output;
  genid = 'NONHRD4'; d1=9; output;
run;

data anno_ds;
 set data1;
   function = 'text';
   x1space = 'datavalue';
   y1space = 'layoutpercent';
   textsize = 6;
   textweight = 'normal';
   width = 20;
   widthunit = 'percent';
   anchor = 'center';
   xc1 = genid;
   y1 = -1;
   label = 'x';
run;

  ods graphics on / reset height=6.8in width=8.5in imagename='test' noborder;
  
  proc sgplot data=data1 noautolegend sganno=anno_ds  pad=(bottom=10pct);
   vbar genx / group=genid response=d1 groupdisplay=cluster 
              dataskin=pressed ;
              
   xaxis label='Grouped data' display=(noticks) valueattrs=(size=7 family=Arial weight=bold) labelattrs=(size=7 family=Arial weight=bold);
   yaxis label='Score (%)' values=(0 to 100 by 10) valueattrs=(size=7 family=Arial weight=bold) labelattrs=(size=7 family=Arial weight=bold);
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_Gibby_0-1619778662704.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58886i6A5C838EE7BD2854/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chris_Gibby_0-1619778662704.png" alt="Chris_Gibby_0-1619778662704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 10:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-annotation-on-a-grouped-VBAR-plot/m-p/738126#M21480</guid>
      <dc:creator>Chris_Gibby</dc:creator>
      <dc:date>2021-04-30T10:35:02Z</dc:date>
    </item>
    <item>
      <title>How to change the color in BARCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-the-color-in-BARCHART/m-p/738836#M21474</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to change the bar color in my GTL temple.&lt;/P&gt;&lt;P&gt;No group in my data, just want to show all bars in a same color, like the RED I specified here....&lt;BR /&gt;However, the bar color always black...&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
 define statgraph swimmer;
  begingraph / drawspace=datavalue;


  layout lattice / rows=1 columns=3 columnweights=(0.1 0.75 0.15) columngutter=0;

    layout overlay;
      entry textattrs=(color=white size=5) "blank";
    endlayout;

    layout overlay / walldisplay=none

        xaxisopts = (label="xxxxx"
                     labelattrs=(size=7)
                     tickvalueattrs=(size=7)
                     linearopts = (viewmin=0 viewmax=140
                                   tickvaluesequence = (start=0 end=140 increment=1)))


      yaxisopts = (label="xxxxxx"  
                     labelattrs=(size=7)
                     display=(label)
                     linearopts = (viewmin=1 viewmax=215
                                   tickvaluesequence = (start=1 end=215 increment=1)));


      barchart  x=obs y=dur /  orient=horizontal barwidth=0.1 fillattrs=(color=yellow);

        endlayout;

   
      layout overlay;
          entry textattrs=(color=white size=5) "blank";
        endlayout;   
    endlayout;
  endgraph;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 May 2021 10:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-the-color-in-BARCHART/m-p/738836#M21474</guid>
      <dc:creator>Coooooo_Lee</dc:creator>
      <dc:date>2021-05-04T10:22:42Z</dc:date>
    </item>
    <item>
      <title>sgplot - change colors for each group in histogram and add statistics</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-change-colors-for-each-group-in-histogram-and-add/m-p/738105#M21467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a histogram and added a density plots for each group.&lt;/P&gt;&lt;P&gt;1. I want to change the colors of each group(the colors of histogram and density have to be the same for each group)&lt;/P&gt;&lt;P&gt;2. I want to add some basic statistics such mean, number of observation for each group. I tried to do it using inset statement, but my problem, how can i use inset statement for each group, i.e the first row statistics will be for the first group, the second row, will be for the second group&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / noborder;

proc sgplot data=test;
  histogram amount   / group=id transparency=0.5;       /* SAS 9.4m2 */
  density   amount   / type=normal group=id;      /* overlay density estimates */
  legenditem type=marker name="1"  / label="Try1" markerattrs=(color=red symbol=circle) labelattrs=( Family="Arial" Size=10 Style=italic Weight=bold);
  legenditem type=marker name="2"  / label="Try2"  markerattrs=(color=blue symbol=circle) labelattrs=(Family="Arial" Size=10 Style=italic Weight=bold);
  keylegend "1" "2"/ location=inside position=topright across=1 noborder AUTOITEMSIZE;
  inset "Average = &amp;amp;avg" "NObs = &amp;amp;nobs" / border title="Try1" TITLEATTRS=(Color=Green Family=Arial Size=8 Style=Italic Weight=Bold) position=topleft TEXTATTRS = (SIZE=6 COLOR=red Family=Arial Size=8 Style=Italic);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-change-colors-for-each-group-in-histogram-and-add/m-p/738105#M21467</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2021-04-30T07:28:55Z</dc:date>
    </item>
    <item>
      <title>Creating boxplots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-boxplots/m-p/737827#M21463</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I will like to create a boxplot for the following 3 variables (var1, var2, var3) as in the table attached. Is there any way to achieve that? they should be displayed side by side in one diagramm&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 09:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-boxplots/m-p/737827#M21463</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-29T09:20:52Z</dc:date>
    </item>
    <item>
      <title>proc sgplot label y axis with another character variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-label-y-axis-with-another-character-variable/m-p/737355#M21448</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=example noautolegend;&lt;BR /&gt;styleattrs datasymbols=(circlefilled );&lt;BR /&gt;scatter x=b y=a ;&lt;BR /&gt;keylegend / location=outside position=NW across=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the above code, is it possible to label the y axis using variable "CAT" to make the y-axis more meaningful?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;CAT&lt;/TD&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAT1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAT2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAT3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAT4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAT5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAT6&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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>Tue, 27 Apr 2021 18:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-label-y-axis-with-another-character-variable/m-p/737355#M21448</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2021-04-27T18:06:11Z</dc:date>
    </item>
    <item>
      <title>Change barwidth sgplot histogram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-barwidth-sgplot-histogram/m-p/736937#M21428</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;is there any way to change the barwidth&lt;/P&gt;
&lt;P&gt;in sgplot histogram statement?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 10:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-barwidth-sgplot-histogram/m-p/736937#M21428</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-26T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Categorical Data on X Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Categorical-Data-on-X-Axis/m-p/736634#M21418</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am analyzing data of different strains with different genotypes and I am trying to format the x axis a certain way. My data is categorical and I would prefer not to change it numbers. I added a xaxis values statement and now my graph looks crazy. Any suggestions? I attached photos of before I used the xaxis value statement and after. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-04-23 at 1.32.59 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58632i2DE1C874411059E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-04-23 at 1.32.59 PM.png" alt="Screen Shot 2021-04-23 at 1.32.59 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-04-23 at 1.32.45 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58633iA7753F6EE79AAA9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-04-23 at 1.32.45 PM.png" alt="Screen Shot 2021-04-23 at 1.32.45 PM.png" /&gt;&lt;/span&gt;This is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Creating figure plotting estiamted probs &amp;amp; CI**;&lt;/P&gt;&lt;P&gt;proc logistic data=estimated2 alpha=0.2 noprint;&lt;BR /&gt;class mosquitostrain (ref= 'NO') genotype / param=ref;&lt;BR /&gt;model Alive(Event='1')= mosquitostrain genotype;&lt;BR /&gt;/* 1. Use a procedure or DATA step to write Pred, Lower, and Upper limits */&lt;BR /&gt;output out=LogiOut predicted=estprob2 l=lower95 u=upper95;&lt;BR /&gt;run;&lt;BR /&gt;/* 2. Be sure to SORT! */&lt;BR /&gt;proc sort data=LogiOut;&lt;BR /&gt;by mosquitostrain genotype;&lt;BR /&gt;run;&lt;BR /&gt;/* 3. Use a BAND statement. If more that one band, use transparency */&lt;BR /&gt;title "Predicted Probabilities with 95% Confidence Limits";&lt;BR /&gt;title2 "Four Strains";&lt;BR /&gt;proc sgplot data=LogiOut;&lt;BR /&gt;band x=genotype lower=Lower95 upper=upper95 / group=mosquitostrain transparency=0.75;&lt;BR /&gt;series x=genotype y=estprob2 / group=mosquitostrain curvelabel;&lt;BR /&gt;xaxis grid;&lt;BR /&gt;xaxis values= ('WT,WT' 'WT,HET' 'HET,WT' 'HET,HET' 'MUT,WT' 'WT,MUT' 'HET,MUT' 'MUT,HET' 'MUT,MUT');&lt;BR /&gt;yaxis grid label="Predicted Probability of Survival" max=1;&lt;BR /&gt;keylegend "L" / location=inside position=NW title="Genotype" across=1 opaque;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 17:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Categorical-Data-on-X-Axis/m-p/736634#M21418</guid>
      <dc:creator>RaquelAR</dc:creator>
      <dc:date>2021-04-23T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Multiple graphs in one panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-in-one-panel/m-p/736611#M21415</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to combine 4 separate survival plots into a single, panel style graph. Please see below for my code for each of the individual survival plots. Any help with this would be greatly appreciated!&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/***Graph #1***/
ods graphics on;
ods output survivalplot=OverallSample;
proc lifetest data=have plots=survival; 
time Days*censor(0);
run;
ods graphics off;

proc sgplot data=OverallSample;  
step y=survival x=time;
run;

/***Graph #2***/
ods graphics on;
ods output survivalplot=VariableA;
proc lifetest data=have plots=survival; 
strata varA;
time Days*censor(0);
run;
ods graphics off;

proc sgplot data=VariableA;  
step y=survival x=time/ group=stratum;
run;

/***Graph #3***/
ods graphics on;
ods output survivalplot=VariableB;
proc lifetest data=have plots=survival; 
strata varB;
time Days*censor(0);
run;
ods graphics off;

proc sgplot data=VariableB;  
step y=survival x=time/ group=stratum;
run;

/***Graph #4***/
ods graphics on;
ods output survivalplot=VariableC;
proc lifetest data=have plots=survival; 
strata varC;
time Days*censor(0);
run;
ods graphics off;

proc sgplot data=VariableC;  
step y=survival x=time/ group=stratum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Apr 2021 15:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-in-one-panel/m-p/736611#M21415</guid>
      <dc:creator>wj2</dc:creator>
      <dc:date>2021-04-23T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Gaussian curves in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Gaussian-curves-in-SAS/m-p/736331#M21407</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;any idea how to create Guassian curves in sas. Any code sample?&lt;/P&gt;
&lt;P&gt;I guess it's easy but it's new for me. My client wants that for a set of diagnosis ages in a DB&amp;nbsp;(Number of cases, Mean, Standard Deviation)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 06:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Gaussian-curves-in-SAS/m-p/736331#M21407</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-22T06:14:36Z</dc:date>
    </item>
    <item>
      <title>Editing labels on Forest Plot in SGPlot and reordering variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Editing-labels-on-Forest-Plot-in-SGPlot-and-reordering-variables/m-p/736250#M21403</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't used SGPLOT aside from the very basics. I have a Forest plot for which I would like to edit the labels. I would also like to reorder the variables so they match the order in the odds ratio table. In my example below, I would like to remove the variables names "Race_new" and "Sex" but keep "Age". I would also like to put "Age" in top followed by "Sex" and then "Race". I've been scouring SAS resources but I can't seem to find anything to address these questions specifically.&amp;nbsp; My code can be found below. Any help would be greatly appreciated.&amp;nbsp;&lt;/P&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="joesmama_0-1619037563001.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58600i5E2F0CF179CEDAE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joesmama_0-1619037563001.png" alt="joesmama_0-1619037563001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;proc sgplot data=orci_a;&lt;BR /&gt;scatter x=oddsratioest y=effect / xerrorlower=lowercl&lt;BR /&gt;xerrorupper=uppercl&lt;BR /&gt;markerattrs=or&lt;BR /&gt;(symbol=DiamondFilled size=8);&lt;BR /&gt;refline 1 / axis=x;&lt;/P&gt;
&lt;P&gt;xaxis label="OR and 95% CI " min=0;&lt;BR /&gt;yaxis label="Covariates";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 20:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Editing-labels-on-Forest-Plot-in-SGPlot-and-reordering-variables/m-p/736250#M21403</guid>
      <dc:creator>joesmama</dc:creator>
      <dc:date>2021-04-21T20:45:30Z</dc:date>
    </item>
    <item>
      <title>sgplot scatter and series (supress one Legend)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-scatter-and-series-supress-one-Legend/m-p/735755#M21390</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I used sgplot to create a scatter and series plot. I get two legends as result. How can are supress one since they are both the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-scatter-and-series-supress-one-Legend/m-p/735755#M21390</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-20T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735537#M21382</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have a graph showing the mean ages in different diagnosis years. I wish to add standard errors to this plot. Is it right to do that with proc means like below and then deduct or add these values from/to the maen ages to get the upper and lower limits. Or do I say lower= mean_age- 2*stderr ,&lt;/P&gt;
&lt;P&gt;and upper= mean_age+2*stderr. Why is this standard error important?&lt;/P&gt;
&lt;PRE&gt;proc means data=mydata noprint;
var age;
class year sex;
output out = myoutdat mean=mean_age stderr=stderr ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 13:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735537#M21382</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-20T13:10:16Z</dc:date>
    </item>
    <item>
      <title>how to label bins on x axis in histogram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-label-bins-on-x-axis-in-histogram/m-p/735390#M21375</link>
      <description>&lt;P&gt;I am trying to plot histograms with proc sgpanel, but the default x-axis labeling is 0, 50, 100, 150.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to show 0, 10, 20, 30, 40, ... or 0, 20, 40, 60, 80,...&lt;/P&gt;
&lt;P&gt;I tried with&amp;nbsp;&lt;CODE class=" language-sas"&gt;rdi=(0 to 200 by 10)&lt;/CODE&gt; but it does not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions? Below is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=exsum0 (where = (armcdn in (1, 2, 3)));
  panelby armcdn / rows=3 layout=rowlattice;
  histogram rdi /BINSTART=0 BINWIDTH = 10 rdi=(0 to 200 by 10);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Apr 2021 00:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-label-bins-on-x-axis-in-histogram/m-p/735390#M21375</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2021-04-20T00:29:57Z</dc:date>
    </item>
    <item>
      <title>sgplot: using data response and datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-using-data-response-and-datalabel/m-p/735212#M21366</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Is it possible to specify a response and a different datalabel in sgplot. I mean I wish to display the relative (percent) values on the yaxis but the absolute on that bars. I used the following code but the pecentages are display in both cases. Is it possible to do that anyway?&lt;/P&gt;
&lt;PRE&gt;proc sgplot data =mergedat dattrmap=myattrimap pad=(bottom=5%) noautolegend noborder;
xaxis grid type=discrete discreteorder=data;
vbar year response=&lt;STRONG&gt;percentvar&lt;/STRONG&gt; group=grup attrid=grup  datalabel = &lt;STRONG&gt;absolutevar&lt;/STRONG&gt; datalabelattrs=(weight=bold) seglabel seglabelattrs=(size=0.25) 
seglabelfitpolicy=none barwidth=0.9 missing;
xaxis  display= (nolabel) valueattrs=(family="verdana" size=8pt) fitpolicy=rotate ValuesRotate=Vertical;
yaxis values=(0 to 60  by 10) display= (nolabel) valueattrs=(family="verdana" size=8pt);

run; &lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Apr 2021 11:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-using-data-response-and-datalabel/m-p/735212#M21366</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-19T11:01:12Z</dc:date>
    </item>
    <item>
      <title>sgrender: alignemt of tick marks</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgrender-alignemt-of-tick-marks/m-p/734730#M21361</link>
      <description>&lt;P&gt;Doing a adverse event plot were I have to put some stat numbers together with a scatter plot (see below). Now I want the stat numbers to be right aligned with the tickmark at the x axis (see red inserted line).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define statgraph demo;
      begingraph ;
            layout overlay;
                      scatterplot y=name x=w / markercharacter =weightc   MARKERCHARACTERPOSITION=left    xaxis=x2;
                       scatterplot y=name x=h / markercharacter =height   MARKERCHARACTERPOSITION=left    xaxis=x2;
             endlayout; 
      endgraph;
   end;
run;
 
data class2;
 set sashelp.class;
 weightc=put(weight,4.1);
 heightc=put(height,4.1);
 w="kg";
 h="cm";
run;

proc sgrender data=class2 template=demo;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58120i7EB62677B757637A/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.png" alt="example.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have created a little sandbox example using the good old sashelp.class :-). Any ideas on how to solve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 11:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgrender-alignemt-of-tick-marks/m-p/734730#M21361</guid>
      <dc:creator>Claus_Stenberg</dc:creator>
      <dc:date>2021-04-19T11:27:50Z</dc:date>
    </item>
    <item>
      <title>SAS KEEPS RUNNING after ERROR 79-322: Expecting a -.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-KEEPS-RUNNING-after-ERROR-79-322-Expecting-a/m-p/734721#M21358</link>
      <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;
&lt;P&gt;After I run proc template sas keeps running and I receive the&amp;nbsp;ERROR 79-322: Expecting a -.&lt;/P&gt;
&lt;P&gt;Any idea, how can I stop SAS from processing the command and fix the issue?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc template;
define statgraph BrokenAxis1;
begingraph /datacolors=(CXD05B5B CX6F7EB3) datacontrastcolors=(red blue);
layout lattice / Columns=2 Rows = 2 columnweights= (.5 .5)
Rows=2 rowweights= (.47 .53) rowgutter = 5
rowdatarange=UNION;
/* Lattice header definitions */
column2headers ;
entry textattrs=(size=9 ) "ELECTIVE"/*/pad=(left=15 px)*/;
entry textattrs=(size=9 ) "EMERGENT"/*/pad=(left=15 px)*/;
endcolumn2headers;
/*define row 1 column 1*/
layout overlay / xaxisopts= (display= (line))
yaxisopts=(display=(line ticks tickvalues label)
label="Total Cost (X$10,000)"
griddisplay=on
linearopts=(includeranges=(min-170000 380000-384000)
tickvalueformat= bigvalues.
tickvaluelist=(20000 40000 60000 80000 100000 120000 140000 160000 380000)));

boxplot x=&amp;amp;GRP Y=eval(ifn(&amp;amp;strata=0,Total_cost, .))/
grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&amp;amp;XVAR
groupdisplay=cluster
meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)
name ="L" ;
endlayout;
/*define row 1 column 2*/

layout overlay /xaxisopts= (display= (line))
yaxisopts=(display=(line ticks tickvalues)
griddisplay=on
linearopts=(includeranges=(min-170000 380000-max)
tickvalueformat= bigvalues.
tickvaluelist=(20000 40000 60000 80000 100000 120000 140000 160000 380000)));

boxplot x=&amp;amp;GRP Y=eval(ifn(&amp;amp;strata=1,Total_Cost, .))/
grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&amp;amp;XVAR
groupdisplay=cluster
meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)
name ="L" ;
endlayout;
/*define row 2 column 2*/
layout overlay /xaxisopts=(display=(ticks tickvalues line))
yaxisopts=(display=(ticks tickvalues line label)label="Postop LOS (days)"
LABELFITPOLICY=SPLITALWAYS LABELSPLITCHAR='#' LABELSPLITCHARDROP=TRUE
griddisplay=on
linearopts=(tickvalueFormat= best12.
includeranges=(min-42 115-118)
tickvaluelist=(5 10 15 20 25 30 35 40 115)));

boxplot x= &amp;amp;GRP Y=eval(ifn(&amp;amp;strata=0,PostopLOS, .)) /grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&amp;amp;XVAR
groupdisplay=cluster

meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)name ="L" ;

endlayout;

/*define row 2 column 2*/

layout overlay /xaxisopts=(display=(ticks tickvalues line))
yaxisopts=(display=(ticks tickvalues line)
griddisplay=on
linearopts=(tickvalueFormat= best12.
includeranges=(min-42 115-max)
tickvaluelist=(5 10 15 20 25 30 35 40 115)));

boxplot x= &amp;amp;GRP Y=eval(ifn(&amp;amp;strata=1,PostopLOS, .)) /
grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&amp;amp;XVAR
groupdisplay=cluster

meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)name ="L" ;

endlayout;
sidebar / align = bottom; discretelegend "L" / halign=center across= 2 border=true VALUEATTRS= (size= 9);
endsidebar;
endlayout;
endgraph;
end;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Apr 2021 10:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-KEEPS-RUNNING-after-ERROR-79-322-Expecting-a/m-p/734721#M21358</guid>
      <dc:creator>Giampaolo</dc:creator>
      <dc:date>2021-04-18T10:44:08Z</dc:date>
    </item>
    <item>
      <title>Relative Risk plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733890#M21349</link>
      <description>&lt;P&gt;The Expected plot is below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manj_0-1618426165466.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57706iBF37E4B2DAC40261/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_0-1618426165466.png" alt="Manj_0-1618426165466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods path show;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods path(prepend) work.templat(update);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods pdf file="&amp;amp;g_outfile..PDF" nogtitle /*nogfootnote*/ bookmarkgen=no;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods graphics on / reset=all width=1000px height=500px border=off ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc template;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;define statgraph AEbyRelativeRisk;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dynamic _thk _grid;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;begingraph;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout lattice / columns=2 rowdatarange=union columngutter=1;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/*--Row block to get common external row axes--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowaxes;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rowaxis / griddisplay=_grid display=(tickvalues) tickvalueattrs=(size=5);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endrowaxes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*--Column headers with filled background--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;column2headers;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;entry " "; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay ; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;entry "&amp;lt;--- Tmt1 Better Tmt2 Better ---&amp;gt;"; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endcolumn2headers;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*--Left side cell with proportional values--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay / xaxisopts=(label="Percent" display=(ticks tickvalues label) labelattrs=(size=8) tickvalueattrs=(size=7));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;referenceline y=teaex / lineattrs=(thickness=_thk) datatransparency=0.9;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatterplot y=ae x=tmt1Pct / markerattrs=graphdata2(symbol=circlefilled size=10)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;name='a' legendlabel="tmt1 (N=&amp;amp;NA)";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatterplot y=ae x=tmt2Pct / markerattrs=graphdata1(symbol=trianglefilled size=10)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;name='b' legendlabel="Tmt2 (N=&amp;amp;NB) ";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;discretelegend 'a' 'b' / border=true halign=left valign=bottom valueattrs=(size=8) displayclipped=true;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/*--Right side cell with Relative Risk values--*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;layout overlay / xaxisopts=(label="Relative Risk with 0.95 CI (*ESC*){unicode '000a'x} tmt1 vs tmt2"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;labelattrs=(size=8) tickvalueattrs=(size=7));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;referenceline y=teaex / lineattrs=(thickness=_thk) datatransparency=0.9;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatterplot y=ae x=RelRisk / xerrorlower=LowerCL xerrorupper=UpperCL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;markerattrs=(symbol=circlefilled size=10);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;referenceline x=1 / lineattrs=graphdatadefault (pattern=solid color=grey);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endlayout;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;endgraph;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods graphics / reset width=6in height=4in imagename='AEbyRelativeRisk';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sgrender data=ip template=AEbyRelativeRisk;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dynamic _thk='0' _grid='on';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods pdf close;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The figure I get is as below:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manj_1-1618426528335.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57707iC998C157667C0D1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_1-1618426528335.png" alt="Manj_1-1618426528335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issues are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) how to split each of the y axis tick values into two or more lines.&lt;/P&gt;&lt;P&gt;2) the figure looks very pale ,how to improve the texts and lines to be a bit more bold or darker so that it will be readable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 18:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Relative-Risk-plot/m-p/733890#M21349</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-04-14T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733073#M21339</link>
      <description>&lt;P&gt;I created a couple of data sets in sas that export to excel. I need to create a description tab that describe my data sets. I was tying to find out a code sample for SAS, where I could put some text in that code and it would create a tab in XL file with that text in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 18:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733073#M21339</guid>
      <dc:creator>JaneS</dc:creator>
      <dc:date>2021-04-12T18:53:55Z</dc:date>
    </item>
    <item>
      <title>How to prevent slice labels from overlapping pie chart (gchart)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-prevent-slice-labels-from-overlapping-pie-chart-gchart/m-p/732783#M21329</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;can anyone help me out with this issue. The labels of my created pie chart overlaps. Is there any way to avoid that in a gchart?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 18:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-prevent-slice-labels-from-overlapping-pie-chart-gchart/m-p/732783#M21329</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-10T18:02:43Z</dc:date>
    </item>
    <item>
      <title>Gchart clustered bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Gchart-clustered-bar-chart/m-p/732576#M21321</link>
      <description>&lt;P&gt;I have a question how to create a clustered graph is SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;County&lt;/TD&gt;&lt;TD&gt;Statewide&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015&lt;/TD&gt;&lt;TD&gt;20.00%&lt;/TD&gt;&lt;TD&gt;50.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;40.00%&lt;/TD&gt;&lt;TD&gt;32.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;30.00%&lt;/TD&gt;&lt;TD&gt;12.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;70.00%&lt;/TD&gt;&lt;TD&gt;0.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;90.00%&lt;/TD&gt;&lt;TD&gt;80.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;100.00%&lt;/TD&gt;&lt;TD&gt;90.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;100.00%&lt;/TD&gt;&lt;TD&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the graph I am trying to create in SAS is the following:&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="JaneS_0-1617991907196.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57232i84BE416AFCDA2D8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaneS_0-1617991907196.png" alt="JaneS_0-1617991907196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please help with the code for it? I was thinking to use proc gchart but then it looks like there should be two vbar arguments and I am not sure how to combine them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 18:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Gchart-clustered-bar-chart/m-p/732576#M21321</guid>
      <dc:creator>JaneS</dc:creator>
      <dc:date>2021-04-09T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Be "that one guy"!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Be-quot-that-one-guy-quot/m-p/732243#M21315</link>
      <description>&lt;P&gt;Too good not to share...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stack_overflow.jpg" style="width: 956px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57127i7B79D6B2A855160A/image-size/large?v=v2&amp;amp;px=999" role="button" title="stack_overflow.jpg" alt="stack_overflow.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Be-quot-that-one-guy-quot/m-p/732243#M21315</guid>
      <dc:creator>RobertAllison_SAS</dc:creator>
      <dc:date>2021-04-08T15:44:26Z</dc:date>
    </item>
    <item>
      <title>proc sgpie</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpie/m-p/732182#M21306</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw this pie chart (using proc sgpie) which I really like. But it seems not to work in sas base(32 bits). Is there any way do create similar charts in sas base (32bits)? using gcharts or alternatives&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 11:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpie/m-p/732182#M21306</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-08T11:14:52Z</dc:date>
    </item>
    <item>
      <title>Creating Custom legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-Custom-legend/m-p/732007#M21298</link>
      <description>&lt;P&gt;I need a way to produce only a legend which can be used on a panel in a template I have created.&amp;nbsp; It's nothing fancy, just a title, 4 colored squares (with Hex or color name specified) with some text next to each.&amp;nbsp; I've seen some SAS programming use gplot to produce only a legend, but that isn't working for my purposes.&amp;nbsp; I came across Lex Jansen's page on it, but wasn't able to use that either.&amp;nbsp; Anyone have some canned SAS code that will do this?&amp;nbsp; I just need a way to call it in PROC GREPLAY so that I can add it to a template.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-Custom-legend/m-p/732007#M21298</guid>
      <dc:creator>ewillisva</dc:creator>
      <dc:date>2021-04-07T18:13:17Z</dc:date>
    </item>
    <item>
      <title>Values less than or equal to percent-of-total shouldn't be summarised as Other gchart(pie)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Values-less-than-or-equal-to-percent-of-total-shouldn-t-be/m-p/731242#M21283</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;is there any option to add to this code, so that small values are not summarised as other in my pie chart?&lt;/P&gt;
&lt;PRE&gt;legend1 label=none
        shape=bar(4,1.5)
        position=(top left)
        offset=(5,)
        across=1
        mode=share;

proc gchart data=mydat;
    pie var1 / sumvar=cases
	            noheading
                     coutline=black
				value= inside
				slice=arrow
				percent=outside
				legend=legend1;
			
run;
quit;
&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Apr 2021 15:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Values-less-than-or-equal-to-percent-of-total-shouldn-t-be/m-p/731242#M21283</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-04T15:17:02Z</dc:date>
    </item>
    <item>
      <title>Fun With SAS ODS Graphics: Ellipses Easter Egg</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Ellipses-Easter-Egg/m-p/731178#M21277</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="easteregg.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56882i09136113E97C32E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="easteregg.png" alt="Ellipses Easter Egg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ellipses Easter Egg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Drawing an egg could &lt;A href="http://www.mathematische-basteleien.de/eggcurves.htm" target="_self"&gt;involve a lot of math&lt;/A&gt;...or you can cut a few corners and join the top of an ellipse with the bottom of a circle. Happy Easter, all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Ellipses Easter Egg
  Bunny icon courtesy of Marie-Louise Merser, DK thenounproject.com/search/?q=easter+bunny&amp;amp;i=960660;

data egg;                                                            * Generate points and text for Easter Egg;
retain id 0 xt1 0 yt1 .195 text1 'HAPPY' xt2 0 yt2 0 text2 'Easter' xb 0 yb -.375; * Text to display and x/y points;
x=-1; y=0; output; x=1; output; y=-1; output; x=-1; output;          * Rectangle points (used to mask bottom half of top ellipse);

ods graphics / reset antialias width=5in height=5in;
proc sgplot data=egg aspect=1 noborder noautolegend nowall;          * Generate Easter Egg (half-ellipse + masking polygon + circle + text + scatter plots);
symbolimage name=bunny image='/folders/myfolders/easterbunny.png';   * Rabbit icon; 
ellipseparm semimajor=.75 semiminor=1 / nooutline fill fillattrs=(color=purple);* Top ellipse of Easter Egg;
polygon x=x y=y id=id / nooutline fill fillattrs=(color=white);      * Mask off bottom half of top ellipse;
ellipseparm semimajor=.75 semiminor=.75  / nooutline fill fillattrs=(color=purple);* Bottom ellipse of Easter Egg (circle);
text x=xt1 y=yt1 text=text1 / textattrs=(color=white size=18pt);     * Happy; 
text x=xt2 y=yt2 text=text2 / textattrs=(color=white size=63pt);     * Easter; 
scatter x=xb y=yb / markerattrs=(symbol=bunny size=48pt);            * Easter Bunny image; 
xaxis display=none min=-.925 max=.925 offsetmax=.001 offsetmin=.001; * Limit x/y axis bounds;
yaxis display=none min=-.80 max=1.05 offsetmax=.001 offsetmin=.001;&lt;/CODE&gt;&lt;/PRE&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="eastereggwire.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56883i0B4CBF78357833A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="eastereggwire.png" alt="Ellipses Easter Egg &amp;quot;Wireframe&amp;quot;" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Ellipses Easter Egg "Wireframe"&lt;/span&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>Sat, 03 Apr 2021 22:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Ellipses-Easter-Egg/m-p/731178#M21277</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-04-03T22:53:48Z</dc:date>
    </item>
    <item>
      <title>Request for help with %sganno and %sgrectangle</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Request-for-help-with-sganno-and-sgrectangle/m-p/731163#M21275</link>
      <description>&lt;P&gt;I'm trying to use %SGANNO and %SGRECTANGLE to overlay a square centered on the intersection of the reference lines of the following graph.&amp;nbsp; Seems simple enough, but no square appears.&amp;nbsp; Must be something simple I'm overlooking and would greatly appreciate your insights.&amp;nbsp; The code I'm using appears below the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gene&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="genemroz_0-1617467587999.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56879i57A7EDD4971C6F7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="genemroz_0-1617467587999.png" alt="genemroz_0-1617467587999.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* create annotation data set */
%sganno;
 data anno;
 %SGRECTANGLE(drawspace="datavalue",x1=0,y1=0,width=200,height=200);
 output;
 run;
/*Create HeatMap*/
ods graphics / reset width=6.4in height=6.4in imagemap;
proc sgplot data=work.optcamer_k_coverage sganno=anno aspect=1;
where tz=80;
title height=12pt "OPTModel Camera Coverage @100km for 200x200km grid at 80km";
	heatmap x=Tx y=Ty / name='HeatMap' discretex discretey 
		colorresponse=k_coverage colormodel=(cxfeebe2 cxfbb4b9 cxf768a1 cxc51b8a cx7a0177)
		transparency=0;
	gradlegend /title='Number of Cameras';
	xaxis label='KM' valuesrotate=vertical grid values=(-300 to 300 by 10);
	yaxis label='KM' grid values=(-300 to 300 by 10);
	refline "0" / axis=x lineattrs=(thickness=2 color=blue) label 
		labelattrs=(color=blue);
	refline "0" / axis=y lineattrs=(thickness=2 color=blue) label 
		labelattrs=(color=blue);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Apr 2021 16:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Request-for-help-with-sganno-and-sgrectangle/m-p/731163#M21275</guid>
      <dc:creator>genemroz</dc:creator>
      <dc:date>2021-04-03T16:36:09Z</dc:date>
    </item>
    <item>
      <title>How to fill the peaks and valleys of a series plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-fill-the-peaks-and-valleys-of-a-series-plot/m-p/731134#M21270</link>
      <description>&lt;P&gt;There was an interesting question on LinkedIn, where the desire was to fill the peaks of a series plot with one color, and the valleys as another color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/feed/update/urn:li:activity:6783694808239128576" target="_blank"&gt;https://www.linkedin.com/feed/update/urn:li:activity:6783694808239128576&lt;/A&gt;&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="Fill.png" style="width: 699px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56873i053E339FC55AA0A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fill.png" alt="Fill.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering how folks would approach this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Graphing guru Kriss Harriss had the good idea of using bandplot, and posted the approach in his excellent Daily Coding series:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/posts/krissharris_dailycoding-day91-sgf-activity-6783513455380041728-vO9n" target="_blank"&gt;https://www.linkedin.com/posts/krissharris_dailycoding-day91-sgf-activity-6783513455380041728-vO9n&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I played with this, I started with a sine wave and the goal of coloring the peaks and valleys different colors, without specifying the x-values to define each peak.&amp;nbsp; I got close to what I wanted, but unfortunately there is no /BREAK option for the band statement, so SGPLOT connects the peaks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data foo;
  do x = 0 to 3.14*4 by 0.01;
    y = sin(x);   
    output;
  end;
run;

data foo2 ; 
  set foo ;
  if y &amp;gt; .5 then do ;
    group=1 ;
    limit=.5 ;
  end ;
  else if y &amp;lt; -.75 then do ;
    group= 2 ;
    limit= -.75 ;
  end ;
run ;

proc sgplot data=foo2 ;
  series x=x y=y ;
  band x = x lower = limit upper = y   / group=group nomissinggroup;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My output, within the unwanted connecting bands highlighted:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fill2.png" style="width: 796px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56874i1A3E2C39D810434E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fill2.png" alt="Fill2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought this was an interesting question, so was curious about other approaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the OP has reference lines for each band, I think my approach might actually 'work' because you could make the reference lines cover the unwanted band lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 13:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-fill-the-peaks-and-valleys-of-a-series-plot/m-p/731134#M21270</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2021-04-03T13:27:08Z</dc:date>
    </item>
    <item>
      <title>datalabelfitpolicy= rotate and xaxis fitpolicy= rotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/datalabelfitpolicy-rotate-and-xaxis-fitpolicy-rotate/m-p/730955#M21267</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have a problem using sgplot fitpolicy. Nothing&amp;nbsp; seems to work.&lt;/P&gt;
&lt;P&gt;I used datalabel and want the values to rotate so that they are horizontally displayed but it's not working (see myfilename1.pdf). Please not that this only seen when the results is outputted as pdf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to suppress 0 values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My second problem is the xaxis fitpolicy =rotate which also doesn't work. Attached are all my test data.&lt;/P&gt;
&lt;P&gt;I will appreciate any help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code&lt;/P&gt;
&lt;PRE&gt;ods graphics/ imagefmt = pdf width= 3in height= 2in noborder push;
goptions device=pdfc gunit=pct rotate=landscape ftext= "verdana" ;
ods listing gpath="mypath/myfolder" ;
ods graphics on / reset=index imagename="myfilename";

footnote justify=center "Cases per Agegroup per year" ;
proc sgplot data=test dattrmap=myattrmap pad=(bottom=5%) noautolegend noborder; 
format sex $sex.;
xaxis grid type=discrete discreteorder=data;
vbar AGEGROUP /response=CASES_PER_AGEGROUP group=sex datalabel datalabelfitpolicy= rotate
datalabelattrs=(size=0.25 color=black family= "verdana") groupdisplay=cluster attrid=sex
barwidth=0.9 missing ; 
xaxis  display= (nolabel) valueattrs=(family="verdana" size=8pt) fitpolicy=rotate ValuesRotate=Vertical;
yaxis values=(0 to 250 by 5) display=(nolabel) valueattrs=(family="verdana" size=8pt) grid offsetmin=0.0 offsetmax=0.0;
keylegend / location=inside position=topleft across=0 title="" valueattrs=(size=10 family="verdana") outerpad=(top=0.2cm) noborder;
run;
footnote " ";&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Apr 2021 11:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/datalabelfitpolicy-rotate-and-xaxis-fitpolicy-rotate/m-p/730955#M21267</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-02T11:04:44Z</dc:date>
    </item>
    <item>
      <title>How do I add specific sections in figures ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-add-specific-sections-in-figures/m-p/730732#M21259</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, any idea how can I do to program the below in SAS ? I mean, the sections in yellow and red that are based on 'y' values of 54 mg/dL, 70 mg/dL, 180 mg/dL and 250 mg/dL ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_sba__1-1617288592572.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56803i575D47EB9D02F2B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_sba__1-1617288592572.png" alt="_sba__1-1617288592572.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;&lt;SPAN&gt;Any advice is welcome!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-add-specific-sections-in-figures/m-p/730732#M21259</guid>
      <dc:creator>_sba_</dc:creator>
      <dc:date>2021-04-01T14:51:50Z</dc:date>
    </item>
    <item>
      <title>sgplot barchart with n on y-axis and % floating over the bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-barchart-with-n-on-y-axis-and-floating-over-the-bars/m-p/730484#M21249</link>
      <description>&lt;P&gt;How do I make a bar chart with N on the y-axis, a category on the x-axis and percent as a label on the bars without creating an output data set with proc freq or something similiar. Just using raw data. . .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 20:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-barchart-with-n-on-y-axis-and-floating-over-the-bars/m-p/730484#M21249</guid>
      <dc:creator>telligent</dc:creator>
      <dc:date>2021-03-31T20:13:10Z</dc:date>
    </item>
    <item>
      <title>How do I have forecast and actual times series on a same graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-have-forecast-and-actual-times-series-on-a-same-graph/m-p/729719#M21241</link>
      <description>&lt;P&gt;Hi, I've just done estimating and forecasting using ARIMA, below is my code. I want to do the Hold-out method where I have my test set and my training set separated, then compare the test set with what I forecasted, I want to have both of them on the same graph now. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;
ods html;

data tesla;
infile "/folders/myfolders/TSLA (1).csv" delimiter=',' firstobs=2;
input date :anydtdte. open high low close adj_close vol;
format date MONYY7.;
informat date MONYY7.;
proc print data=tesla;

ods graphics on;
proc sgplot data=tesla;
series x=date y=open;
Xaxis values=('01Jun2010'd to '01Jun2019'd by year) valuesformat=year4.;
title 'TSLA Opening Price';
run;

proc arima data=tesla;
identify var=open(1);
estimate p=3 q=2 method=ml noconstant; 
forecast lead=12 out=teslaforecast; 
proc print data=teslaforecast;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-have-forecast-and-actual-times-series-on-a-same-graph/m-p/729719#M21241</guid>
      <dc:creator>thuphammm</dc:creator>
      <dc:date>2021-03-29T08:20:17Z</dc:date>
    </item>
    <item>
      <title>Proc sgplot in SAS university edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-in-SAS-university-edition/m-p/729284#M21238</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want to create a bar chart as shown in the picture. Will I be able to do it using SAS. If yes, can someone help me with the syntax for the same?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and consideration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following syntax but did not get the desired output as I have &lt;STRONG&gt;2 response variables (mental&amp;amp;physical)&lt;/STRONG&gt;, also I want to know how I can add different colors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC SGPLOT DATA = testrun;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;VBAR category / RESPONSE = mental stat=mean barwidth=0.1 ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TITLE 'Mental activity score';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Blue: Category1&amp;nbsp; &amp;nbsp;Red=category2&amp;nbsp; green=category3&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasques.png" style="width: 615px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56535i1F1A506B62277A8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasques.png" alt="sasques.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 04:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-in-SAS-university-edition/m-p/729284#M21238</guid>
      <dc:creator>uzma03505621</dc:creator>
      <dc:date>2021-03-26T04:37:47Z</dc:date>
    </item>
    <item>
      <title>Only want the year to appear on my x-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Only-want-the-year-to-appear-on-my-x-axis/m-p/729276#M21229</link>
      <description>&lt;P&gt;Hi everyone, first-time poster here!&lt;/P&gt;&lt;P&gt;So I have this data set:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-26 at 09.01.25.png" style="width: 559px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56532i0D2D08AE54DEDA61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-03-26 at 09.01.25.png" alt="This is my data" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This is my data&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It produced a series plot like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-26 at 09.01.17.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56531i8C5B515FB08BC5AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-03-26 at 09.01.17.png" alt="and this is the plot I got" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;and this is the plot I got&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want my graph to look like this with the x-axis to consist only year, obviously i failed using the SAS code below because the x-axis looks right but there's no graph.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-26 at 09.00.39.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56534i4AD069D2EB00478B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-03-26 at 09.00.39.png" alt="I want the plot to have the x-axis like this (obviously I failed, the graph does not appear)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I want the plot to have the x-axis like this (obviously I failed, the graph does not appear)&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-26 at 09.00.23.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56533iCCDCDE7F4A1CEBDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-03-26 at 09.00.23.png" alt="this is what I used" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;this is what I used&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 02:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Only-want-the-year-to-appear-on-my-x-axis/m-p/729276#M21229</guid>
      <dc:creator>thuphammm</dc:creator>
      <dc:date>2021-03-26T02:05:36Z</dc:date>
    </item>
    <item>
      <title>Change font and font size in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-font-and-font-size-in-proc-sgpanel/m-p/728890#M21223</link>
      <description>&lt;P&gt;Hello, I'm new to SAS and am using SAS studio. Thanks in advance for the help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the following code to make a graph that represents some Likert-scale data I collected:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / reset width=6in height=3in imagename='Likert_Panel_';  
title 'Student perceptions of the social aspects of cPLTL';  
proc sgpanel data=all;  
	styleattrs datacolors=(deeppink hotpink pink MistyRose lightSalmon salmon Tomato)   
		datacontrastcolors=(black);  
	panelby question / layout=panel columns=1 onepanel novarname noborder nowall;  
	highlow y=cPLTL low=low high=high / group=group type=bar nooutline 
		lowlabel=sumdisagree highlabel=sumagree dataskin=matte;  
    rowaxis display=(nolabel noticks ) fitpolicy=none;  
colaxis display=(nolabel);    
    keylegend / noborder;  
    where category = "social"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The resulting image looks like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="graph.png" style="width: 577px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56409iD68F871C92B61F1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.png" alt="graph.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to change the font style and font size of the whole graph to make it easier to read? Also, is there a way to get rid of the boxes around each panel?&amp;nbsp;&amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 11:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-font-and-font-size-in-proc-sgpanel/m-p/728890#M21223</guid>
      <dc:creator>mcmaxwell</dc:creator>
      <dc:date>2021-03-26T11:29:39Z</dc:date>
    </item>
    <item>
      <title>Graficar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graficar/m-p/728828#M21217</link>
      <description>Alguien podría ayudarme, quiero hacer una gráfica horizontal que me permita manejar dos conjuntos de datos en la misma gráfica,por ejemplo quiero tener alturas, diámetros y que estén en función de número de sitio</description>
      <pubDate>Wed, 24 Mar 2021 17:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graficar/m-p/728828#M21217</guid>
      <dc:creator>Uriel26</dc:creator>
      <dc:date>2021-03-24T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Waterfall</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Waterfall/m-p/728604#M21207</link>
      <description>&lt;P&gt;How can i draw following graph using sas? Any ideas would be appreciated. 001, 002 are patient numbers, the colored lines are a criterial presenting for each patient.&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="SASSLICK001_0-1616544346793.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56348iC0F38ED210A31A72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASSLICK001_0-1616544346793.png" alt="SASSLICK001_0-1616544346793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 00:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Waterfall/m-p/728604#M21207</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2021-03-24T00:06:50Z</dc:date>
    </item>
    <item>
      <title>Stacked bar graph of column percentages for subgroups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-bar-graph-of-column-percentages-for-subgroups/m-p/728598#M21206</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;I have a data set of a survey, and the program below generates a stacked bar graph of the percentage of DISEASE status (3 categories) by LOCATION. However, the graph uses the percentages of the total sample, whereas I want the graph to show the column percentages, and only for diseased individuals.&lt;/P&gt;
&lt;P&gt;I tried using WHERE statement to include only the diseased groups, but the percentages becomes wrong. Is there a way around that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;surveyfreq&lt;/STRONG&gt; data=moroc6 order=formatted;&lt;/P&gt;
&lt;P&gt;tables disease * location /col nowt nototal plots= freqplot(groupby=column twoway=stacked scale=percent);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; where disease in ("Acute" , "Chron" , "None");&lt;/P&gt;
&lt;P&gt;cluster province;&lt;/P&gt;
&lt;P&gt;strata region;&lt;/P&gt;
&lt;P&gt;weight sampling_weight;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;ods graphics off;&lt;/P&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="Jason2020_0-1616541934735.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56345i398B92EDDA57628D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason2020_0-1616541934735.png" alt="Jason2020_0-1616541934735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 23:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-bar-graph-of-column-percentages-for-subgroups/m-p/728598#M21206</guid>
      <dc:creator>Jason2020</dc:creator>
      <dc:date>2021-03-23T23:27:53Z</dc:date>
    </item>
    <item>
      <title>line shift on y-axis tick label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/line-shift-on-y-axis-tick-label/m-p/728150#M21184</link>
      <description>&lt;P&gt;I am doing an template for an AE dotplot for clinical trials. The text string for a preferred term is shown on the y axis. Often the text string is very long why I want have a line break so the term will be on two lines (the y axis tick mark label). I have tried to get force a line shift in the text string by setting in the unicode for a line break&amp;nbsp; - (*ESC*){unicode '000a'x} - but that does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing the plot in GTL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define statgraph aedotplot;
   
      begingraph ;

    
         layout lattice /columns=5 
                         columnweights = (0.4 0.1 0.1 0.2 0.2) 
                         rowdatarange=unionall 
                         columngutter=0 
                         ;
                         

            layout overlay / walldisplay=none 
                             border=false 
                             x2axisopts=(display=(tickvalues ) 
                             displaysecondary=(line)) 
                             yaxisopts=(linearopts=(tickvaluesequence=(start=1 end=&amp;amp;count increment=1))
                                       display=none
                                       displaysecondary=none
                                       );

      /*--Draw alternating bands using referenceline--*/
               referenceline y = display2nd/ lineattrs=(thickness=&amp;amp;RefThickness.PCT) datatransparency=0.9;
/*             left colum with text box */
               scatterplot y=display x=display_label / markercharacter=display MARKERCHARACTERPOSITION=right yaxis=Y xaxis=X2 markerattrs=(size=0) includemissinggroup=true;

            endlayout;&lt;BR /&gt;......&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas ?&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aedotplot.jpg" style="width: 572px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56235iA1177DAF3D1BAADC/image-size/large?v=v2&amp;amp;px=999" role="button" title="aedotplot.jpg" alt="aedotplot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 12:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/line-shift-on-y-axis-tick-label/m-p/728150#M21184</guid>
      <dc:creator>Claus_Stenberg</dc:creator>
      <dc:date>2021-03-22T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Remove x-axis labels proc tree</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Remove-x-axis-labels-proc-tree/m-p/728014#M21181</link>
      <description>&lt;P&gt;I have some data and code and I am producing a&amp;nbsp;dendrogram using the proc tree statement as I have been instructed to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my dataset has multiple thousands of observations, and printing thousands of labels for each observation is visually impractical. I would like to remove the labels from the x-axis of the dendrogram by amending the proc tree code, but I can't figure out how. The only thing I could find online to try was&amp;nbsp;haxis=none, but that did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 18:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Remove-x-axis-labels-proc-tree/m-p/728014#M21181</guid>
      <dc:creator>Lollieboo</dc:creator>
      <dc:date>2021-03-21T18:05:55Z</dc:date>
    </item>
    <item>
      <title>Keylegend Elements SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Keylegend-Elements-SGPLOT/m-p/727909#M21177</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a plot that looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anita_n_0-1616251564544.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56188i49E353F59BB3C379/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anita_n_0-1616251564544.png" alt="Anita_n_0-1616251564544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wish to insert the percentages in the graph and the keylegend should just be one or two lines outside the graph. I used across=2 but it isn't working. Any help?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = mydata dattrmap= myattrmap pad=(bottom=5%) noautolegend noborder;
xaxis grid type=discrete discreteorder=data;
vbar year / response=frequencies group = mygroup attrid=mygroup barwidth=0.9 missing ;
xaxis  display= (nolabel) valueattrs=(family="verdana" size=8pt) fitpolicy=rotate ValuesRotate=Vertical;
yaxis  display= (nolabel) valueattrs=(family="verdana" size=8pt);
keylegend / location=outside position=bottomright across=2 title="" valueattrs=(size=10 family="verdana") outerpad=(top=0.2cm) noborder;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Mar 2021 14:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Keylegend-Elements-SGPLOT/m-p/727909#M21177</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-20T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Use SGPLOT to produce an animated .svg via the HTML or HTML5 ODS destinations</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Use-SGPLOT-to-produce-an-animated-svg-via-the-HTML-or-HTML5-ODS/m-p/727899#M21175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would like to produce a chart animation in a single .html file that contains a nice and simple Scaleable Vector Graphic (.svg) file that is the result of running Proc SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I seem to be able to do this with Proc GCHART, but I definitely want to use Proc SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only seem to be able to get SGPLOT and the .svg parts working if I use the ODS PRINTER destination and that produces a .svg file, rather than an .html file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really do want a single .html file that, when opened in a browser, shows my nice animation, and crucially, displays the pause/refresh controls to allow the user to manage the .svg animation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My demo code via the ODS PRINTER destination, using SASHELP.CARS, so you can all join in, looks like the following.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;You will probably need to amend the path used in the ODS PRINTER File option.&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;GOptions Reset=ALL;
Options  PrinterPath=SVG 
         Animate=START 
         AnimDuration=0.75 
         PaperSize=("45cm", "15cm")
         SVGTitle="Daves Animation"
         ;

**************************************************************;
*Close ALL ODS destinations before we start.                  ;
**************************************************************;
ODS _ALL_ CLOSE;
**************************************************************;
*Open just the ODS PRINTER destination.                       ;
**************************************************************;
ODS PRINTER File="C:\Temp\SGPlotDemo03.svg";
**************************************************************;
*Use each SGPLOT to produce a frame of the animation.         ;
**************************************************************;
title1 "Plot of MPG City versus Horsepower - Cars from Asia" ;  
proc sgplot data=sashelp.cars; 
Where Origin="Asia";
  bubble x=horsepower y=mpg_city size=cylinders / fillattrs=(color=green transparency=.5);
run;

title1 "Plot of MPG City versus Horsepower - Cars from Europe" ;  
proc sgplot data=sashelp.cars; 
Where Origin="Europe";
  bubble x=horsepower y=mpg_city size=cylinders / fillattrs=(color=yellow transparency=.5);
run;

title1 "Plot of MPG City versus Horsepower - Cars from USA" ;  
proc sgplot data=sashelp.cars; 
Where Origin="USA";
  bubble x=horsepower y=mpg_city size=cylinders / fillattrs=(color=red transparency=.5);
run;
Title;

**************************************************************;
*Stop the animation.                                          ;
**************************************************************;
Options Animation=STOP;
**************************************************************;
*Close the ODS PRINTER destination.                           ;
**************************************************************;
ODS PRINTER CLOSE;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope that someone can put me out of misery here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I chasing ghosts trying to get an .svg animation into a single .html file using Proc SGPLOT or is there something fundamental that I am missing here ? I do&amp;nbsp; not understand why Proc GCHART plays ball writing out to the ODS HTML destination, but Proc SGPLOT does not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Downunder Dave&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 08:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Use-SGPLOT-to-produce-an-animated-svg-via-the-HTML-or-HTML5-ODS/m-p/727899#M21175</guid>
      <dc:creator>DaveShea</dc:creator>
      <dc:date>2021-03-20T08:57:44Z</dc:date>
    </item>
    <item>
      <title>Proc SGPLOT - Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-Legend/m-p/727729#M21169</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using sgplot to do 2 histograms in a figure, comparing the distribution of 2 groups (one in blue, one in red). I chose to keep the histogram bars empty (nofill option). The legend therefore shows only a colored line, one red and one blue. I would however like to have boxes in the legend, not lines. To match the appearance of my histogram bars, I would like to therefore have empty/white boxes, with colored outlines matching my groups. I can't seem to figure out how to do this. I can either have just lines, or fully colored red and blue boxes. Any experience/ideas with that? Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 11:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-Legend/m-p/727729#M21169</guid>
      <dc:creator>A_M_</dc:creator>
      <dc:date>2021-03-19T11:48:13Z</dc:date>
    </item>
    <item>
      <title>Changing the bar color in high low plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/726944#M21165</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to change the bar color in the high-low plot without using attrid and dattrmap ? I am trying to plot high-low where their are three bars and I want to sign unique color to each bar based on treatment. Your help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 23:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/726944#M21165</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2021-03-16T23:51:11Z</dc:date>
    </item>
    <item>
      <title>How do I change the datalabel title in SGPLOT VBAR?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-datalabel-title-in-SGPLOT-VBAR/m-p/726806#M21163</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show data labels on the bar chart like in the image.&lt;/P&gt;&lt;P&gt;My code looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=mydata
	styleattrs datacolors=(blue red) datalinepatterns=(solid);
	vbar season_ / response=quantity
        group=condition limitstat=stderr numstd=1 stat=mean
	datalabel=quantity datalabelattrs=(size=12pt) datalabelpos=bottom
	limitattrs=(color=black thickness=1) dataskin=pressed attrid=condition groupdisplay=cluster;
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would like to change the label "Ev (mean)" to another name I choose (for example just "mean"), does someone know if there is a way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-03-16 at 16.01.55.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56022i352846DF3C03284B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-03-16 at 16.01.55.png" alt="Screenshot 2021-03-16 at 16.01.55.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 15:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-the-datalabel-title-in-SGPLOT-VBAR/m-p/726806#M21163</guid>
      <dc:creator>marta25</dc:creator>
      <dc:date>2021-03-16T15:28:37Z</dc:date>
    </item>
    <item>
      <title>create forest plot using output from multiple models</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/create-forest-plot-using-output-from-multiple-models/m-p/726520#M21152</link>
      <description>&lt;P&gt;Dear SAS Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using SAS for several years and hate to admit that I typically cut and paste model results and graph or create tables using a different program. But I've decided to take my SAS graphing skills farther.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the problem. I'm looking at temperature sensitive (exposure) in a severe maternal morbidity (outcome) across 5 critical windows of pregnancy: (1) pre-conception, (2) Trimester 1, (3)&amp;nbsp;Trimester 2, (4)&amp;nbsp;Trimester 3, and (5) last month of pregnancy. For each critical period, I'm modeling relative risk for 4 separate exposure outcomes : very cold vs moderate, cold vs moderate, very hot vs moderate, and hot vs moderate across three temperature variables Average temperature, maximum temperature, and minimum temperature.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, results examining average temperature exposure and SMM relative risk across 5 critical periods will produce results from 20 models. How do I create a forest plot for maximum temperature and illustrate Relative Risk (RR) for 4 separate exposure outcomes:&amp;nbsp;very cold vs moderate, cold vs moderate, very hot vs moderate, and hot vs moderate across 5 critical periods of pregnancy?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is example code that produces RR for SMM in response to 4 exposure categories of maximum temperature:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;**LMvcold_mod LMvhot_mod LMcold_mod LMhot_mod;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;genmod&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;= SMMheat.Tmaxdup;&lt;/P&gt;
&lt;P class="p1"&gt;*by preterm race_ethn;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; RFA_ID&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; SMM20 (Event=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;)= LMvcold_mod&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/ &lt;SPAN class="s2"&gt;dist&lt;/SPAN&gt;=poisson &lt;SPAN class="s2"&gt;type3&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt; = log &lt;SPAN class="s2"&gt;dscale&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p3"&gt;repeated subject&lt;SPAN class="s4"&gt;= RFA_ID &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;type&lt;SPAN class="s4"&gt;=exch &lt;/SPAN&gt;modelse&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;'Beta LMvcold_mod'&lt;/SPAN&gt; LMvcold_mod &lt;SPAN class="s5"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; / &lt;SPAN class="s2"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;genmod&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;= SMMheat.Tmaxdup;&lt;/P&gt;
&lt;P class="p1"&gt;*by preterm race_ethn;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; RFA_ID&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; SMM20 (Event=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;)= LMvhot_mod&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/ &lt;SPAN class="s2"&gt;dist&lt;/SPAN&gt;=poisson &lt;SPAN class="s2"&gt;type3&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt; = log &lt;SPAN class="s2"&gt;dscale&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p3"&gt;repeated subject&lt;SPAN class="s4"&gt;= RFA_ID &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;type&lt;SPAN class="s4"&gt;=exch &lt;/SPAN&gt;modelse&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;'Beta LMvhot_mod'&lt;/SPAN&gt; LMvhot_mod &lt;SPAN class="s5"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; / &lt;SPAN class="s2"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;genmod&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;= SMMheat.Tmaxdup;&lt;/P&gt;
&lt;P class="p1"&gt;*by preterm race_ethn;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; RFA_ID&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; SMM20 (Event=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;)= LMcold_mod&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/ &lt;SPAN class="s2"&gt;dist&lt;/SPAN&gt;=poisson &lt;SPAN class="s2"&gt;type3&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt; = log &lt;SPAN class="s2"&gt;dscale&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p3"&gt;repeated subject&lt;SPAN class="s4"&gt;= RFA_ID &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;type&lt;SPAN class="s4"&gt;=exch &lt;/SPAN&gt;modelse&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;'Beta LMcold_mod'&lt;/SPAN&gt; LMcold_mod &lt;SPAN class="s5"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; / &lt;SPAN class="s2"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;genmod&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;SMMheat.Tmaxdup;&lt;/P&gt;
&lt;P class="p1"&gt;*by preterm race_ethn;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; RFA_ID&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; SMM20 (Event=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;)= LMhot_mod&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/ &lt;SPAN class="s2"&gt;dist&lt;/SPAN&gt;=poisson &lt;SPAN class="s2"&gt;type3&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt; = log &lt;SPAN class="s2"&gt;dscale&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p3"&gt;repeated subject&lt;SPAN class="s4"&gt;= RFA_ID &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;type&lt;SPAN class="s4"&gt;=exch &lt;/SPAN&gt;modelse&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;'Beta LMhot_mod'&lt;/SPAN&gt; LMhot_mod &lt;SPAN class="s5"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; / &lt;SPAN class="s2"&gt;exp&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 19:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/create-forest-plot-using-output-from-multiple-models/m-p/726520#M21152</guid>
      <dc:creator>jdr1</dc:creator>
      <dc:date>2021-03-15T19:39:38Z</dc:date>
    </item>
    <item>
      <title>CDF plots (cumulative density) using proc univariate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/CDF-plots-cumulative-density-using-proc-univariate/m-p/726461#M21149</link>
      <description>&lt;P&gt;Hi, I using the following code to build the plot attached. I would need to change the attributes of the lines to pink solid line and green dashed line. At present it is showing blue and red solid lines be default. Anyone suggest a method to change the attributes?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ods listing close;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods pdf file="&amp;amp;g_outfile..&amp;amp;g_fontsize" nobookmarkgen style=idsl dpi=600 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ods noproctitle ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;title1 j=l height=10pt "Protocol: %upcase(&amp;amp;g_study_id)" j=r "Page 1 of 1";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;title2 j=l height=10pt "Population: &amp;amp;g_poplbl";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;title3 j=center "Figure &amp;amp;g_dsplynum"; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;title4 j=center "&amp;amp;g_title1 "; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;title5 %if &amp;amp;g_title2 = %then %do; color = white "." %end; %else %do; j=center "&amp;amp;g_title2." %end;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;*footnote1 j=left h=9pt "&amp;amp;g_foot1"; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Footnote1 j=left h=9pt j=left "&amp;amp;g_userid: &amp;amp;g_pgmpth &amp;amp;sysdate9 &amp;amp;systime";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;proc univariate data=sf36_obs noprint ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;class trtppn ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;var chg;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;cdfplot /overlay odstitle=none ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods pdf close;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods listing;&lt;/FONT&gt;&lt;/P&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="Manj_0-1615827700891.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55969iA50FC4C5514D3F13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manj_0-1615827700891.png" alt="Manj_0-1615827700891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 17:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/CDF-plots-cumulative-density-using-proc-univariate/m-p/726461#M21149</guid>
      <dc:creator>Manj</dc:creator>
      <dc:date>2021-03-15T17:02:50Z</dc:date>
    </item>
    <item>
      <title>SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726044#M21145</link>
      <description>&lt;P&gt;I am trying to get SGPanel to produce a scatter plot graphs in 4 panels with different x-axis scales.&amp;nbsp; I divide the data into 4 groups of x-values--the by statement divides the data such that each panel displays the entire common range (see attach).&amp;nbsp; Is it possible to have each panel with its own range such that the detail within the range is clearer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I use:&lt;/P&gt;&lt;P&gt;ods rtf body="K:\MRM\Model ...\graphs\AVM vs. True Scatterplot by &amp;amp;name..rtf";&lt;BR /&gt;proc sgpanel data=&amp;amp;lib..reg ;&lt;BR /&gt;panelby &amp;amp;by. / /*uniscale=row*/ sort =data ;&lt;BR /&gt;* scatter x=lastsaleprice y=avm_value / ;&lt;BR /&gt;reg x=lastsaleprice y=avm_value / cli /*nomarkers*/ lineattrs=(color=red);&lt;BR /&gt;format avm_value cpred dollar12.0;&lt;BR /&gt;*colaxis min=0 max=1750000;&lt;BR /&gt;* rowaxis min=0 max=1750000;&lt;BR /&gt;TITLE "AVM vs. True Scatterplot by &amp;amp;name";&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image I'm getting is attached.&amp;nbsp; Any suggestions are welcome.&amp;nbsp; Thanks for your help.&amp;nbsp; -- George&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 14:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726044#M21145</guid>
      <dc:creator>grezek_tcfbank_com</dc:creator>
      <dc:date>2021-03-13T14:37:11Z</dc:date>
    </item>
    <item>
      <title>sgplot stack bar by descending order while keeping group order inside each bar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-stack-bar-by-descending-order-while-keeping-group-order/m-p/725978#M21136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m having trouble in the following bar plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goals are:&lt;BR /&gt;- Descending order by the total count of each key word&lt;BR /&gt;- The same order of two teams inside each bar&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stack bars.png" style="width: 624px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55896i5977B52A73C4DBAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="stack bars.png" alt="stack bars.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code I’m using now is as below:&lt;/P&gt;&lt;PRE&gt;proc sort data=rct; &lt;BR /&gt;  by descending totalct team;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data = rct;  
                                    
  VBAR keyword /RESPONSE = count  /*y-axis: count per keyword per team*/  
                  group = team    /*stack each bar with two teams*/
                  categoryorder = respdesc; /*order by count of each team per keyword, not the total count of each keyword*/
       
run;&lt;/PRE&gt;&lt;P&gt;Part of the data is like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.png" style="width: 610px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55897i56787991B255B487/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.png" alt="data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the above code is not 100% correct in terms of achieving my goals, but I don’t know what code (proc or options) to use in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Alicia&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 20:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-stack-bar-by-descending-order-while-keeping-group-order/m-p/725978#M21136</guid>
      <dc:creator>garfieldyue</dc:creator>
      <dc:date>2021-03-12T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Waterfall Plot: x-axis tick mark vertical labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Waterfall-Plot-x-axis-tick-mark-vertical-labels/m-p/725817#M21133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In my waterfall, I am plotting change in tumor size for 145 subjects. As a result the subject numbers are not displayed clearly and x-axis is not readable. Is there a way to make the subject numbers (x-axis) tick marks vertical? Attached to this post is an image of x-axis from the plot. Any help is much appreciated. Thanks!!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Waterfall Plot xaxis.png" style="width: 584px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55882iFD3DF2F0E9DD1ED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Waterfall Plot xaxis.png" alt="Waterfall Plot xaxis.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 15:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Waterfall-Plot-x-axis-tick-mark-vertical-labels/m-p/725817#M21133</guid>
      <dc:creator>Banoo</dc:creator>
      <dc:date>2021-03-12T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Space out clustered bar chart more</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Space-out-clustered-bar-chart-more/m-p/725554#M21130</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_0-1615488886673.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55829i3EFCFF026EAF121C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_0-1615488886673.png" alt="lrackley_0-1615488886673.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can anyone tell me which options I have to change to make these bars bigger and more space between them? Just looks too on top of each other as it is currently. I tried barwidth and clusterwidth and it's not producing what I want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=aedata;
panelby sev_abbr;
hbar SOC/response=count group=aesevn groupdisplay=cluster datalabel=labelvar clusterwidth=0.85 barwidth=0.85;
colaxis label="Number of Events";
rowaxislabel="System Organ Class";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Space-out-clustered-bar-chart-more/m-p/725554#M21130</guid>
      <dc:creator>lrackley</dc:creator>
      <dc:date>2021-03-11T18:57:32Z</dc:date>
    </item>
    <item>
      <title>How to change color scale of a Heatmap in PROC SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-color-scale-of-a-Heatmap-in-PROC-SGPLOT/m-p/725067#M21115</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to create a Heatmap of inter-biomarker correlations using PROC SGPLOT. However, &amp;nbsp;I repeatedly failed to adjust the color scale. I would like to define white as the "0"-level of Pearson's r, and blue for negative and red for positive values, as I think that this would be the intuitive Interpretation. See the code below. I tried to define colormodel(STARTCOLOR "-1") etc. but this was not helpful at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am grateful for any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=CorrLong &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;noautolegend&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;heatmap&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Variable &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=CorrelationID / &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;colorresponse&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Correlation &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"nope1"&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;discretex&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;discretey&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;x2axis&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;colormodel&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=ThreeColorRamp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;text&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Variable &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=CorrelationID &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;text&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=p_value / &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;textattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;pt) &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;x2axis&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'nope2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; correlation=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'Pearson Correlation'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;yaxis&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;reverse&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;display&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(nolabel);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;x2axis&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;display&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(nolabel);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;gradlegend&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 07:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-color-scale-of-a-Heatmap-in-PROC-SGPLOT/m-p/725067#M21115</guid>
      <dc:creator>gmgrosse</dc:creator>
      <dc:date>2021-03-10T07:46:52Z</dc:date>
    </item>
    <item>
      <title>Plot multiple x-y relations with 3D-tilt</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-multiple-x-y-relations-with-3D-tilt/m-p/724863#M21111</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would please like to ask for your help concerning the following issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a nutshell, I want to create a graph akin to this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="want1.PNG" style="width: 650px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55728i460896EBCBC8B812/image-dimensions/650x333?v=v2" width="650" height="333" role="button" title="want1.PNG" alt="want1.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;&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;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, I have, as a data set, a discrete approximation of n probability-density functions (here, n=3).&lt;/P&gt;&lt;P&gt;I want to plot them such that they do not appear "on top of each other", but with a 3D-tilt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plotting "on top of each other" I achieved via &lt;FONT face="courier new,courier"&gt;proc gplot&lt;/FONT&gt;. However, I do not know how to tackle my current issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great, if you could please provide help with respect to how achieve my goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample-Code is embedded in the spoiler;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data	in1;
	input	x	t1 t2 t3;
	datalines;
		0.05	0.1	0.05	0.001
		0.1	0.2	0.1	0.001
		0.15	0.2	0.1	0.001
		0.2	0.3	0.4	0.01
		0.25	0.4	0.4	0.02
		0.3	0.5	0.5	0.05
		0.35	1	1	0.1
		0.4	2	2	3
		0.45	2.5	3	4
		0.5	3	4.5	6
		0.55	2.5	3	4
		0.6	2	2	3
		0.65	1	1	0.1
		0.7	0.5	0.5	0.05
		0.75	0.4	0.4	0.02
		0.8	0.3	0.4	0.01
		0.85	0.2	0.1	0.001
		0.9	0.2	0.1	0.001
		0.95	0.1	0.05	0.001
	;
run;

	symbol1
		interpol		=			join 
		value			=			DiamondFilled 
		color			=			black 
		height			=			0.25;      
	symbol2
		interpol		=			join 
		value			=			DiamondFilled 
		color			=			blue 
		height			=			0.25;                                                                         
	symbol3
		interpol		=			join 
		value			=			DiamondFilled 
		color			=			orange 
		height			=			0.25;                                                                         
 	axis1
		label			=			("x") 
		minor			=			none 
		value			=			(color=black angle=45)
		;      
	axis2
		label			=			(angle=90 "\phi(x)")
		minor			=			(n=1);  
	proc	gplot
		data	=	in1
					;
		plot (t1 t2 t3)* x
		/
		overlay
			haxis	=	axis1
			vaxis	=	axis2
		;
	run; quit;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Yours sincerely,&lt;BR /&gt;Sinistrum&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 14:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-multiple-x-y-relations-with-3D-tilt/m-p/724863#M21111</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2021-03-09T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Histogram options - Specify Color bar &amp; Title/Description</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-options-Specify-Color-bar-amp-Title-Description/m-p/723635#M21104</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using the following code to create Histograms that I will ultimately include in a presentation package. I need to format the titles and color bars so that it matches the rest of the presentation template. My 2 needs are :&lt;/P&gt;
&lt;P&gt;- What is the code to specify the color that is filled in the histogram bar?&lt;/P&gt;
&lt;P&gt;- What is the code to display the BY variables in the Plot Description? Currently the histogram description is "Distribution of PnL". I want to be able to say "Distribution of PnL - &amp;lt;&lt;EM&gt;Symbol&lt;/EM&gt;&amp;gt;_&amp;lt;&lt;EM&gt;RiskProfile&lt;/EM&gt;&amp;gt;"&lt;/P&gt;
&lt;P&gt;Any suggestions would be greatly appreciated. If this question should be posted in Graphics community, please let me know.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select Histogram;
proc univariate data=Mstr_rule4a_analysis noprint;
by symbol riskprofile;
var PnL;
histogram/barlabel=count ;
where win_loss ne 'FEE' and year ge 2015 ;
inset n mean std="Std Dev" / pos = ne format = 5.2;
title 'IB One-5yrs-Histogram PnL';
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Mar 2021 18:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-options-Specify-Color-bar-amp-Title-Description/m-p/723635#M21104</guid>
      <dc:creator>IChatterji</dc:creator>
      <dc:date>2021-03-05T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Ask the Expert Webinar: How Can I Create Graphs Using SAS®</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Ask-the-Expert-Webinar-How-Can-I-Create-Graphs-Using-SAS/m-p/721681#M21099</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graphs.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55132i729A32C71B561CB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Graphs.jpg" alt="Graphs.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi Graphics Programming Community,&lt;/P&gt;
&lt;P&gt;SAS customers Richann Watson and Kriss Harris are presenting a live “Ask the Expert” webinar on March 4&lt;SUP&gt;th&lt;/SUP&gt;, 11 AM – Noon ET entitled &lt;EM&gt;How Can I Create Graphs Using SAS&lt;SUP&gt;®&lt;/SUP&gt;? &lt;/EM&gt;&lt;SPAN&gt;Learn &lt;/SPAN&gt;to harness the power of SAS to create meaningful graphs using Statistical Graphics procedures and Graph Template Language (GTL). Richann and Kriss will share their expertise in creating SAS graphs and show you how to customize graphs for your audience. They’ll also host a live Q&amp;amp;A session at the end of the webinar.&lt;/P&gt;
&lt;P&gt;You will learn:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How to use Statistical Graphics procedures.&lt;/LI&gt;
&lt;LI&gt;Ways to adjust your graph font, color, and more.&lt;/LI&gt;
&lt;LI&gt;Ways to use ODS output objects to get data from another SAS procedure.&lt;/LI&gt;
&lt;LI&gt;Techniques using Graph Template Language (GTL) to create a custom graph.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Click &lt;/STRONG&gt;&lt;STRONG&gt;&lt;A href="https://www.sas.com/gms/redirect.jsp?detail=GMS145416_208689" target="_blank"&gt;here&lt;/A&gt;&lt;/STRONG&gt;&lt;STRONG&gt; to register for the webinar.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Want more tips? Be sure to subscribe to the&amp;nbsp;&lt;A href="http://communities.sas.com/askexpert" target="_blank"&gt;Ask the Expert board&lt;/A&gt;&amp;nbsp;to receive follow up Q&amp;amp;A, slides and recordings from this and other SAS Ask the Expert webinars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't join the live event? You can view this and other&amp;nbsp;&lt;A href="http://support.sas.com/training/askexpert.html" target="_blank"&gt;Ask the Expert sessions on-demand here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 21:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Ask-the-Expert-Webinar-How-Can-I-Create-Graphs-Using-SAS/m-p/721681#M21099</guid>
      <dc:creator>wreeves</dc:creator>
      <dc:date>2021-02-24T21:04:04Z</dc:date>
    </item>
    <item>
      <title>Proc Gchart + Values dont Fit inside Stack Bar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-Values-dont-Fit-inside-Stack-Bar/m-p/720660#M21097</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am working on creating Stacked Vertical Bar chart. and when my values are small they don't fit inside the bar. can&amp;nbsp; you please help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code run good to this values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data sold;&lt;/P&gt;&lt;P&gt;input city $ Sales Type$;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if type = 'customer' then color = '1';&lt;/P&gt;&lt;P&gt;else if type = 'employer' then color = '3';&lt;/P&gt;&lt;P&gt;else if type = 'manufact' then color = '2';&lt;/P&gt;&lt;P&gt;else color = '4';&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;current 40 customer&lt;/P&gt;&lt;P&gt;previos 25 manufact&lt;/P&gt;&lt;P&gt;previos 10 customer&lt;/P&gt;&lt;P&gt;previos 5 employer&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below code employer values are not shown inside the bar. Also i would like to have the dollar values inside the midddle of the bar instead on the top.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code :&lt;/P&gt;&lt;P&gt;data sold;&lt;/P&gt;&lt;P&gt;input city $ Sales Type$;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if type = 'customer' then color = '1';&lt;/P&gt;&lt;P&gt;else if type = 'employer' then color = '3';&lt;/P&gt;&lt;P&gt;else if type = 'manufact' then color = '2';&lt;/P&gt;&lt;P&gt;else color = '4';&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;current 20 customer&lt;/P&gt;&lt;P&gt;previos 12 manufact&lt;/P&gt;&lt;P&gt;previos 7 customer&lt;/P&gt;&lt;P&gt;previos 1 employer&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset = all border cback = white hsize=6in htitle =2.0 htext =5.0 imagestyle = vsize=3in;&lt;/P&gt;&lt;P&gt;goptions device=jpeg gsfname=out;&lt;/P&gt;&lt;P&gt;goptions xpixels=550 ypixels=650;&lt;/P&gt;&lt;P&gt;ods graphics on / width =2in;&lt;/P&gt;&lt;P&gt;ods graphics / height =20in;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods html path = 'mypath' body="test.htm" style =htmlblue gpath = '/mypath/test.jpg';&lt;/P&gt;&lt;P&gt;pattern1 v =solid color='#33ccff';&lt;/P&gt;&lt;P&gt;pattern2 v =solid color='#ff9900';&lt;/P&gt;&lt;P&gt;pattern3 v =solid color='#bfbfbf';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gchart data=sold;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar city/discrete sumvar=sales nozero group = city subgroup = color type = sum&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width = 8 space =15 NOFRAME noaxis noloegend coutline = gray99 woutline =1 inside=sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format sales dollar8.&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS HTML CLOSE;&lt;/P&gt;&lt;P&gt;ODS LISTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 19:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-Values-dont-Fit-inside-Stack-Bar/m-p/720660#M21097</guid>
      <dc:creator>pmksasbi</dc:creator>
      <dc:date>2021-02-20T19:22:25Z</dc:date>
    </item>
    <item>
      <title>Change Error Bar Line Style by Group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-Error-Bar-Line-Style-by-Group/m-p/721340#M21086</link>
      <description>&lt;P&gt;Is there anyway to alter the style of error bars by group in regards to line style or thickness?&lt;/P&gt;
&lt;P&gt;I'm working on a graph where the error bars overlap, so I want them to appear distinct on the graph.&lt;/P&gt;
&lt;P&gt;I've attempted with SGPLOT and SGDESIGN, but have only been able to differentiate the groups by color.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not want to stagger the bars using the cluster option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are examples of the code I'm working with.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc template;
define statgraph sgdesign;
dynamic __XCLAS __PREDICTED __UCLM __LCLM __GROUP2;
begingraph / dataskin=none attrpriority=Auto DataColors=(CX000000 CX848284) DataContrastColors=(CX000000 CXA4A5A4) DataLinePatterns=(4 1) DataSymbols=(circlefilled trianglefilled);
   layout lattice / rowdatarange=data columndatarange=data rowgutter=10 columngutter=10;
      scatterplot x=__XCLAS y=__PREDICTED / group=__GROUP2 yerrorupper=__UCLM yerrorlower=__LCLM name='scatter' groupdisplay=Overlay errorbarattrs=(thickness=1);
   endlayout;
endgraph;
end;
run;

proc sgrender data=B.EFFECTPLOTRAWDATA1 template=sgdesign;
dynamic __XCLAS="'_XCLAS'n" __PREDICTED="'_PREDICTED'n" __UCLM="'_UCLM'n" __LCLM="'_LCLM'n" __GROUP2="'_GROUP'n" ;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=b.effectPlotRawData1;
scatter x = _XCLAS y = _PREDICTED / yerrorupper=_UCLM yerrorlower=_LCLM group=_INDEX name='scatter' ERRORBARATTRS=(THICKNESS = 1);
styleattrs datacontrastcolors=(black darkgray) datalinepatterns=(ShortDash LongDash);
;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2021 17:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-Error-Bar-Line-Style-by-Group/m-p/721340#M21086</guid>
      <dc:creator>moreka</dc:creator>
      <dc:date>2021-02-23T17:10:10Z</dc:date>
    </item>
    <item>
      <title>How to use a line chart instead of a barchart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-a-line-chart-instead-of-a-barchart/m-p/721336#M21084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to using charts in sas. I want to have a line chart and a table below the chart. I used code from the following reference from the link: &lt;A href="https://support.sas.com/kb/49/697.html" target="_blank"&gt;https://support.sas.com/kb/49/697.html&lt;/A&gt; but instead of using a bar chart. I want to use a line chart so that each value for one of the variables ("Slept") is graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i replace "barchart" with something else to make this into a line graph? Thanks in advance for your thoughts and suggestions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scooby3g_0-1614098949493.png" style="width: 729px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55085i3CD0BE76EE431642/image-dimensions/729x339?v=v2" width="729" height="339" role="button" title="Scooby3g_0-1614098949493.png" alt="Scooby3g_0-1614098949493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA Slept;
INPUT QUARTER SLEPT PERCENT C_Count;
DATALINES;
2019Q1	NA	5	6
2019Q2	NO	2	3
2019Q3	UKNOWN	6	8
2019Q4	YES	5	7
2020Q1	NA	5	6
2020Q2	NO	9	11
2020Q3	UKNOWN	5	6
2020Q4	YES	5	7
2019Q1	NA	0	
2019Q2	NO	17	
2019Q3	UKNOWN	0	
2019Q4	YES	83	
2020Q1	NA	0	
2020Q2	NO	14	
2020Q3	UKNOWN	14	
2020Q4	YES	71	
2019Q1	NA	0	
2019Q2	NO	100	
2019Q3	UKNOWN	0	
2019Q4	YES	0	
2020Q1	NA	0	
2020Q2	NO	0	
2020Q3	UKNOWN	0	
2020Q4	YES	100	
2019Q1	NA	0	
2019Q2	NO	0	
2019Q3	UKNOWN	0	
2019Q4	YES	100	
2020Q1	NA	0	
2020Q2	NO	0	
2020Q3	UKNOWN	0	
2020Q4	YES	100	
;
RUN;

proc template;
   define statgraph GRAPHY;
   begingraph;
      entrytitle 'SLEPT ';
      layout lattice / rowweights=(.65 .35);
         layout overlay;
	    barchart X=Quarter y=percent / group=SLEPT barlabel=true dataskin=gloss;
	 endlayout;
	 layout overlay / xaxisopts=(type=discrete label='Number per CY Quarter' 
                          display=(label)) walldisplay=none;
	    blockplot x=Quarter block=C_Count / class=Quarter display=(outline values label) 
                                              repeatedvalues=true;
	 endlayout;
      endlayout;
   endgraph;
   end;
run;
proc sgrender data=SLEPT template=GRAPHY;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2021 16:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-a-line-chart-instead-of-a-barchart/m-p/721336#M21084</guid>
      <dc:creator>Scooby3g</dc:creator>
      <dc:date>2021-02-23T16:51:38Z</dc:date>
    </item>
  </channel>
</rss>

