<?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 Spread some love with SAS Visual Analytics in Valentine's Day Data Viz Challenge</title>
    <link>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/915493#M6</link>
    <description>&lt;P&gt;Why not use SAS Visual Analytics and one of my favorite coordinate plot visualizations to spread some love this season! For this example - I'm borrowing some existing ASCII arts from site&amp;nbsp;&lt;A href="https://www.asciiart.eu/holiday-and-events/valentine" target="_blank" rel="noopener"&gt;https://www.asciiart.eu/holiday-and-events/valentine&lt;/A&gt;&amp;nbsp;- but you can easily apply this example to other drawings or try with your own creativity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simply copied the related text into a text file (vi.txt) and wrote a short SAS data step to generate a data set for my SAS Visual Analytics report.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename in "vi.txt";&lt;BR /&gt;&lt;BR /&gt;/* the width of the grid depends on the input data */
%let GRID_WIDTH=68;
data valentine(compress=yes);
	infile in truncover;
	input line $CHAR&amp;amp;GRID_WIDTH..;
   &lt;BR /&gt;    /* generate 4 columns: X/Y (coordinates), C (color code) and DATE */
	length x y c date 8.;
	format date year.;

	y = &amp;amp;GRID_WIDTH. - _n_;
	do i = 1 to &amp;amp;GRID_WIDTH.;
		tmp = put(line,$char&amp;amp;GRID_WIDTH..);
   		n = substrn(tmp,i,1);
		c = rank(n); /* a simple rank to distinguish between different chars */
		x = i;		
		if (c ne 32) then do; /* */
			id = put(x,z2.) || put(y,z2.);
			if (c eq 88) then c = 100; /* 'X' */&lt;BR /&gt;&lt;BR /&gt;            /* animate the color code for some color ranges (&amp;gt;100) */
			do year = 1950 to 1960 by 1;
				date = mdy(1,1,year);
				if (c ge 100) then c = c + (year - 1950);
				output;
			end;
			do year = 1961 to 1970 by 1;
				date = mdy(1,1,year);
				if (c ge 100) then c = c - (year - 1950);
				output;
			end;
		end;
	end;

	keep id y x c date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With that data set loaded into SAS Visual Analytics, we can add a coordinate plot visualization to the canvas. I decided to use the Geo Coordinate object as it allows me to animate the data using a date variable. The original geo map background is hidden using related option in the Options panel. As geographic item, I used the ID variable with related X &amp;amp; Y coordinates variables and a custom coordinate space &lt;EM&gt;EPSG:900913&lt;/EM&gt; for better flat rendering of the data points.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Visual Analytics report - Spreading Love" style="width: 963px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93539i0064B10697F9E881/image-size/large?v=v2&amp;amp;px=999" role="button" title="vi_v2_spreading_love.gif" alt="SAS Visual Analytics report - Spreading Love" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS Visual Analytics report - Spreading Love&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Some finishing touches around additional header and footer - produces the example above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy Valentines Day Everyone!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 15:02:17 GMT</pubDate>
    <dc:creator>FalkoSchulz</dc:creator>
    <dc:date>2024-02-12T15:02:17Z</dc:date>
    <item>
      <title>Spread some love with SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/915493#M6</link>
      <description>&lt;P&gt;Why not use SAS Visual Analytics and one of my favorite coordinate plot visualizations to spread some love this season! For this example - I'm borrowing some existing ASCII arts from site&amp;nbsp;&lt;A href="https://www.asciiart.eu/holiday-and-events/valentine" target="_blank" rel="noopener"&gt;https://www.asciiart.eu/holiday-and-events/valentine&lt;/A&gt;&amp;nbsp;- but you can easily apply this example to other drawings or try with your own creativity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simply copied the related text into a text file (vi.txt) and wrote a short SAS data step to generate a data set for my SAS Visual Analytics report.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename in "vi.txt";&lt;BR /&gt;&lt;BR /&gt;/* the width of the grid depends on the input data */
%let GRID_WIDTH=68;
data valentine(compress=yes);
	infile in truncover;
	input line $CHAR&amp;amp;GRID_WIDTH..;
   &lt;BR /&gt;    /* generate 4 columns: X/Y (coordinates), C (color code) and DATE */
	length x y c date 8.;
	format date year.;

	y = &amp;amp;GRID_WIDTH. - _n_;
	do i = 1 to &amp;amp;GRID_WIDTH.;
		tmp = put(line,$char&amp;amp;GRID_WIDTH..);
   		n = substrn(tmp,i,1);
		c = rank(n); /* a simple rank to distinguish between different chars */
		x = i;		
		if (c ne 32) then do; /* */
			id = put(x,z2.) || put(y,z2.);
			if (c eq 88) then c = 100; /* 'X' */&lt;BR /&gt;&lt;BR /&gt;            /* animate the color code for some color ranges (&amp;gt;100) */
			do year = 1950 to 1960 by 1;
				date = mdy(1,1,year);
				if (c ge 100) then c = c + (year - 1950);
				output;
			end;
			do year = 1961 to 1970 by 1;
				date = mdy(1,1,year);
				if (c ge 100) then c = c - (year - 1950);
				output;
			end;
		end;
	end;

	keep id y x c date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With that data set loaded into SAS Visual Analytics, we can add a coordinate plot visualization to the canvas. I decided to use the Geo Coordinate object as it allows me to animate the data using a date variable. The original geo map background is hidden using related option in the Options panel. As geographic item, I used the ID variable with related X &amp;amp; Y coordinates variables and a custom coordinate space &lt;EM&gt;EPSG:900913&lt;/EM&gt; for better flat rendering of the data points.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Visual Analytics report - Spreading Love" style="width: 963px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93539i0064B10697F9E881/image-size/large?v=v2&amp;amp;px=999" role="button" title="vi_v2_spreading_love.gif" alt="SAS Visual Analytics report - Spreading Love" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS Visual Analytics report - Spreading Love&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Some finishing touches around additional header and footer - produces the example above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy Valentines Day Everyone!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 15:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/915493#M6</guid>
      <dc:creator>FalkoSchulz</dc:creator>
      <dc:date>2024-02-12T15:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Spread some love with SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/915979#M9</link>
      <description>&lt;P&gt;Struck by Cupid's arrow, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2917"&gt;@FalkoSchulz&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;L&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;VE it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 02:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/915979#M9</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2024-02-14T02:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spread some love with SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/917276#M19</link>
      <description>&lt;P&gt;Amazing!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 23:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Valentine-s-Day-Data-Viz/Spread-some-love-with-SAS-Visual-Analytics/m-p/917276#M19</guid>
      <dc:creator>Bjones81</dc:creator>
      <dc:date>2024-02-21T23:41:04Z</dc:date>
    </item>
  </channel>
</rss>

