<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Producing Legend from GMAP for GREPLAY template in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672651#M20304</link>
    <description>&lt;P&gt;I tried adding that option to the legend, and now the output in the SAS results window looks great but the PDF file is stretched horizontally.&amp;nbsp; I've tried changing the orientation but that distorts it even more&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; I used code from your example here (&lt;A href="https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobslink.com%2FSAS%2Fdemocd93%2Fpanama_inset_map.sas&amp;amp;data=02%7C01%7C%7C2408e5395dae425e0cd108d83259181b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637314705517074647&amp;amp;sdata=qXHXz8PnIar0ep%2FLcezfANRzyMyuP47FtgKhUyeyX7k%3D&amp;amp;reserved=0" target="_blank"&gt;http://robslink.com/SAS/democd93/panama_inset_map.sas&lt;/A&gt;).&amp;nbsp; I want to keep the border detail on the inset maps for the 5 territories, so I removed the xpixel and ypixel options from the GMAP procedures for each.&amp;nbsp; This didn't seem to change the output from the GREPLAY procedure.&amp;nbsp; I also want the titles and footnotes to appear on the PDF, but none of those are showing. I do see them on the results window.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having issues with how the separate territory maps look for a couple of them, but I'll raise that in another posting.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
goptions xpixels=800 ypixels=800; 
options  orientation=landscape papersize=legal;
ODS pdf style=sasweb file='...US_ALL.pdf'  ;


proc greplay tc=tempcat nofs igout=work.gseg;
  tdef crmap des='crmap'
   1/llx = 0   lly = 0
     ulx = 0   uly = 80
     urx =80  ury = 80
     lrx =80  lry = 0
   2/llx = 86   lly = 78
     ulx = 86   uly = 90
     urx =98  ury = 90
     lrx =98  lry = 78
   3/llx =  86  lly = 63 
     ulx =  86  uly = 75
     urx = 98  ury = 75
     lrx = 98  lry = 63 
   4/llx =  86  lly = 48 
     ulx =  86  uly = 60
     urx = 98  ury = 60
     lrx = 98  lry = 48  
    5/llx =  86  lly = 33 
     ulx =  86  uly = 45
     urx = 98  ury = 45
     lrx = 98  lry = 33 
    6/llx =  86  lly = 18 
     ulx =  86  uly = 30
     urx = 98  ury = 30
     lrx = 98  lry = 18

   ;

title1 c=gray33 f='albany amt' h=16pt "US Map States and Territories";
title2 c=gray33 f='albany amt' h=12pt 'Date: July 2020';
title3
c=red h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt " 5"
c=orange h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt "4"
c=DAY h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt "3";
title4
c=black h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt "1 or 2";
footnote1 c=gray33 f='albany amt' h=8pt "footnote1";
footnote2 c=gray33 f='albany amt' h=8pt "footnote2" ;
footnote3 c=gray33 f='albany amt' h=8pt "footnote3"
;

template = crmap;
treplay 
 1:states50
2:PRMAP
3:VIMAP
4:GUMAP
5:ASMAP
6:MPMAP
des='' ;
run;

quit;
ODS pdf CLOSE;
ODS LISTING;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2020 18:20:47 GMT</pubDate>
    <dc:creator>RandoDando</dc:creator>
    <dc:date>2020-07-27T18:20:47Z</dc:date>
    <item>
      <title>Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672144#M20299</link>
      <description>&lt;P&gt;I have a US map produced from the GMAP procedure with a choropleth variable which has the 5 possible values formatted with Proc Format.&amp;nbsp; Below are those parts of my code.&lt;/P&gt;
&lt;P&gt;I am using GREPLAY to produce a template which includes the US map, and the 5 US territories in 5 small insets on the right side.&amp;nbsp; I have the template working for the insets, but not the main US map.&amp;nbsp; The legend for the&amp;nbsp;choropleth varaible (same for each map) needs to be an independent panel so that the US map is not stretched.&amp;nbsp; I &lt;A href="https://support.sas.com/kb/24/945.html" target="_self"&gt;found&lt;/A&gt; how to separate the legend using GPLOT with the &lt;EM&gt;noaxe&lt;/EM&gt;s and &lt;EM&gt;noframe&lt;/EM&gt; options, but I cannot find a way to produce JUST this legend with the specified colors and values from the GMAP procedure.&amp;nbsp; Once I have the legend separate, I can assign it to a panel in greplay.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For titles and footnotes, will the GSLIDE procedure still work with multiple title and footnote statements (subtitles, sub-footnotes), and which have varying formatting and embedded unicode?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value Risk
0 = 'No Data Available'
1 = 'Low'
2= 'Moderately Low '
3 = 'Moderately High '
4 = 'High ';
run;


goptions reset=all;
pattern1 value=m3N45 color=black;
pattern2 value=msolid color=BILG;
pattern3 value=msolid color=gold;
pattern4 value=msolid color=orange;
pattern5 value=msolid color=VIYPK;
legend1 label=(justify=c "State Risk Score (1-Lowest to 4-Highest)")
value=(tick=1 justify=l 
       tick=2 justify=l 
       tick=3 justify=l
                   tick=4 justify=l
       tick=5 justify=l);
goptions xpixels=800 ypixels=800;
proc gmap data=my_map map=my_map anno=anno_shadow all;
id statecode;
choro risk_score / legend=legend1  levels=5 midpoints=(0 1 2 3 4 ) anno=anno_all
des='' name='states50';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 18:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672144#M20299</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-24T18:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672188#M20300</link>
      <description>&lt;P&gt;There is no reason that a Legend per se would "stretch" any map.&lt;/P&gt;
&lt;P&gt;I would suggest that you consider the template set up as the cause as it sounds like the height to width ration of the replay cell has a different ratio than your map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This link &lt;A href="https://support.sas.com/kb/24/945.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/24/945.html&lt;/A&gt; shows one way to accomplish this. There are bits about a common title as well. The example provides 1) data to display 2) Code including the graphs and proc template and the example to display the results.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 22:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672188#M20300</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-24T22:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672589#M20303</link>
      <description>&lt;P&gt;Try creating the output without the legend, and see if you're still getting the 'stretching' problem. Alternatively, try using mode=share for the legend, so that the legend shouldn't affect the size or position of the legend. To help further diagnose the problem, it would help to show the code that creates your custom greplay template, and also what some sample output looks like.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 15:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672589#M20303</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-07-27T15:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672651#M20304</link>
      <description>&lt;P&gt;I tried adding that option to the legend, and now the output in the SAS results window looks great but the PDF file is stretched horizontally.&amp;nbsp; I've tried changing the orientation but that distorts it even more&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; I used code from your example here (&lt;A href="https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobslink.com%2FSAS%2Fdemocd93%2Fpanama_inset_map.sas&amp;amp;data=02%7C01%7C%7C2408e5395dae425e0cd108d83259181b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637314705517074647&amp;amp;sdata=qXHXz8PnIar0ep%2FLcezfANRzyMyuP47FtgKhUyeyX7k%3D&amp;amp;reserved=0" target="_blank"&gt;http://robslink.com/SAS/democd93/panama_inset_map.sas&lt;/A&gt;).&amp;nbsp; I want to keep the border detail on the inset maps for the 5 territories, so I removed the xpixel and ypixel options from the GMAP procedures for each.&amp;nbsp; This didn't seem to change the output from the GREPLAY procedure.&amp;nbsp; I also want the titles and footnotes to appear on the PDF, but none of those are showing. I do see them on the results window.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having issues with how the separate territory maps look for a couple of them, but I'll raise that in another posting.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
goptions xpixels=800 ypixels=800; 
options  orientation=landscape papersize=legal;
ODS pdf style=sasweb file='...US_ALL.pdf'  ;


proc greplay tc=tempcat nofs igout=work.gseg;
  tdef crmap des='crmap'
   1/llx = 0   lly = 0
     ulx = 0   uly = 80
     urx =80  ury = 80
     lrx =80  lry = 0
   2/llx = 86   lly = 78
     ulx = 86   uly = 90
     urx =98  ury = 90
     lrx =98  lry = 78
   3/llx =  86  lly = 63 
     ulx =  86  uly = 75
     urx = 98  ury = 75
     lrx = 98  lry = 63 
   4/llx =  86  lly = 48 
     ulx =  86  uly = 60
     urx = 98  ury = 60
     lrx = 98  lry = 48  
    5/llx =  86  lly = 33 
     ulx =  86  uly = 45
     urx = 98  ury = 45
     lrx = 98  lry = 33 
    6/llx =  86  lly = 18 
     ulx =  86  uly = 30
     urx = 98  ury = 30
     lrx = 98  lry = 18

   ;

title1 c=gray33 f='albany amt' h=16pt "US Map States and Territories";
title2 c=gray33 f='albany amt' h=12pt 'Date: July 2020';
title3
c=red h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt " 5"
c=orange h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt "4"
c=DAY h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt "3";
title4
c=black h=12pt f='albany amt/unicode' '2605'x
c=gray33 f='albany amt' h=10pt "1 or 2";
footnote1 c=gray33 f='albany amt' h=8pt "footnote1";
footnote2 c=gray33 f='albany amt' h=8pt "footnote2" ;
footnote3 c=gray33 f='albany amt' h=8pt "footnote3"
;

template = crmap;
treplay 
 1:states50
2:PRMAP
3:VIMAP
4:GUMAP
5:ASMAP
6:MPMAP
des='' ;
run;

quit;
ODS pdf CLOSE;
ODS LISTING;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672651#M20304</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-27T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672780#M20310</link>
      <description>&lt;P&gt;I'm not sure what advice to give on pdf output.&lt;/P&gt;
&lt;P&gt;Would you be able to create png output, and then include the png image into your pdf?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 11:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672780#M20310</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-07-28T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672799#M20311</link>
      <description>I changed the device to PNG and the output to HTML5, keeping everything else the same.  The results window shows the titles, footnotes, and the graphs correctly (no stretching), but does NOT show the unicode symbols in my titles.  The external ODS HTML file does not display an image at all.  I exported the output manually via the results window (to html) and the file does show the image and titles, but not the unicode.  I just need a format which supports the unicode.</description>
      <pubDate>Tue, 28 Jul 2020 12:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672799#M20311</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-28T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672822#M20312</link>
      <description>&lt;P&gt;Are you using gtitles? (ie, are the titles part of the png image, or outside of the png image and part of the html? I think Enterprise Guide defaults to nogtitles) Also, what font are you using? How are you submitting the SAS job? (batch sas, DMS Windows SAS, Enterprise Guide, other?) Maybe try ods html rather than ods html5.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672822#M20312</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-07-28T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672825#M20314</link>
      <description>I am using EG, not part of a batch job.  Just executing SAS code manually.  I added the Gtitle and gfootnote options but that didn't seem to change anything.  The fonts are "albany amt" and "Albany amt/unicode".</description>
      <pubDate>Tue, 28 Jul 2020 13:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672825#M20314</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-28T13:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672826#M20315</link>
      <description>The titles are still showing up above the graphics output, above the border.</description>
      <pubDate>Tue, 28 Jul 2020 13:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672826#M20315</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-28T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Legend from GMAP for GREPLAY template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672950#M20319</link>
      <description>&lt;P&gt;I think in EG you have to go through the menus and change some setting to get the gtitles and gfootnotes (rather than using the code options). I'm not an EG user, so I'm not sure what menu to point you towards, but maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;can point you in the right direction for that!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Producing-Legend-from-GMAP-for-GREPLAY-template/m-p/672950#M20319</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-07-28T18:38:42Z</dc:date>
    </item>
  </channel>
</rss>

