<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Steven Entezari on Medium]]></title>
        <description><![CDATA[Stories by Steven Entezari on Medium]]></description>
        <link>https://medium.com/@sentezari?source=rss-da391f4a5456------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q-tCNtPrt7wTFjbUX_xCVA.jpeg</url>
            <title>Stories by Steven Entezari on Medium</title>
            <link>https://medium.com/@sentezari?source=rss-da391f4a5456------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:50:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sentezari/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Longitudinal Heatmap of Traffic Collisions in Los Angeles and How to DIY (in R)]]></title>
            <link>https://medium.com/@sentezari/a-longitudinal-heatmap-of-traffic-collisions-in-los-angeles-and-how-to-diy-in-r-c6bf5edd1402?source=rss-da391f4a5456------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6bf5edd1402</guid>
            <category><![CDATA[car-accidents]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[los-angeles]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Steven Entezari]]></dc:creator>
            <pubDate>Mon, 11 Jun 2018 16:11:01 GMT</pubDate>
            <atom:updated>2018-06-14T01:15:18.238Z</atom:updated>
            <content:encoded><![CDATA[<p>Los Angeles is infamous for it’s traffic; and inevitably, with traffic comes traffic collisions. Here’s a unique look at this, and a walkthrough on how to put one together yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wl1CoIso2NY1CHKL4_N7g.jpeg" /></figure><p>In an effort to make the city more open and transparent, <a href="https://medium.com/u/e7ece27914ee">Mayor Eric Garcetti</a> and team have created, and maintain <a href="https://data.lacity.org/">https://data.lacity.org/</a>, a repository of hundreds of LA-specific datasets and charts. Huge kudos to him, and the city of Los Angeles DATALA team!</p><p>Earlier this week, I was perusing the data repo, and found this dataset on <a href="https://data.lacity.org/A-Safe-City/Traffic-Collision-Data-from-2010-to-Present/d5tf-ez2w">traffic collisions from 2010 to present</a>. I used this data to create a gif of traffic collision trends from 2010 to present day:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*oQ1AQ4iZG0M2rSob5T_fzg.gif" /></figure><h3>Methods</h3><p>I first extracted the data from <a href="https://data.lacity.org/A-Safe-City/Traffic-Collision-Data-from-2010-to-Present/d5tf-ez2w">the repository</a> on Saturday, June 10th 2018 as a standard csv file. I then loaded the csv into r:</p><pre>collisions &lt;- read_csv(&quot;Traffic_Collision_Data_from_2010_to_Present.csv&quot;,col_types = cols(`Date Occurred` = col_date(format = &quot;%m/%d/%Y&quot;),`Date Reported` = col_date(format = &quot;%m/%d/%Y&quot;)))</pre><p>Once in r, I invoked the required libraries for my manipulation (<a href="https://cran.r-project.org/web/packages/ggplot2/index.html">ggplot2</a>, <a href="https://cran.r-project.org/web/packages/ggmap/index.html">ggmap</a>, <a href="https://cran.r-project.org/web/packages/dplyr/index.html">dplyr</a>) and instantiate a base map:</p><pre>library(ggplot2)<br>library(ggmap)<br>library(dplyr)<br>library(lubridate)<br>library(tidyr)</pre><pre>losangeles_map &lt;- get_map(location=&quot;Hollywood&quot;, zoom=11)</pre><p>With all the necessities in place, I wrote a simple function to organize the data (not necessary, but I may modify for piecewise use later). I’ll display the function in it’s entirety below, but will build it out as we go, to define the various parts.</p><p>The function consists of two for loops; one to iterate through the years and one for the months.</p><pre>heatmapFunction &lt;- function(){ <br>    for(year in 2010:2018){<br>        #the good stuff<br>        for(month in 1:12){<br>            #the good stuff<br>        }<br>    }<br>}</pre><p>The raw collision data consists of 417,416 rows (at date of pull), from January 2010 to May 2018. For each frame of the gif, I want the data points for just one month to be plotted. To do this, I first define the “from” and “to” dates using the for loop described above. The “from” date should be the beginning of the month in question, while the “to” date is the beginning of the following month — I make sure to not double count the first of the month later:</p><pre>heatmapFunction &lt;- function(){ <br>    for(year in 2010:2018){<br>        <strong>fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)</strong><br>        for(month in 1:12){<br>            #the good stuff<br>        }<br>    }<br>}</pre><p>The exception here is when calculating a “to” date when the “from” date is in December — as written, the code will attempt to set the “to” date to the thirteenth month of the year, so I added a conditional statement to adjust that as needed:</p><pre>heatmapFunction &lt;- function(){ <br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        <strong>if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }</strong><br>        for(month in 1:12){<br>            #the good stuff<br>        }<br>    }<br>}</pre><p>With these parameters in place, we can now segment our collision data to reflect the respective “from” and “to” dates. I use dplyr to filter the data. Additionally, given the layout of the geospatial data, I needed to extract the longitude and latitude into separate fields from the “Location” field (currently displayed as “(LatitudeCoord,LongitudeCoord)”) in the raw data using a <a href="https://en.wikipedia.org/wiki/Regular_expression">regular expression</a>; note, this is where I ensure the first of the following month isn’t counted twice by using a “&lt;”, without an “=”, for the “to” date):</p><pre>heatmapFunction &lt;- function(){ <br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }<br>        for(month in 1:12){</pre><pre>            <strong>collisionsdata &lt;- collisions %&gt;% filter(`Date Occurred` &gt;= fromdate, `Date Occurred` &lt; todate) %&gt;% extract(Location, c(&quot;Latitude&quot;, &quot;Longitude&quot;), &quot;\\(([^,]+), ([^)]+)\\)&quot;)</strong></pre><pre>        }<br>    }<br>}</pre><p>Before I create the chart, I need to create the label that will show the month and year in the top right quadrant of the gif:</p><pre>heatmapFunction &lt;- function(){ <br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }<br>        for(month in 1:12){</pre><pre>            <strong>imagelabel = paste0(month(as.Date(fromdate), label=TRUE, abbr=FALSE), &quot; &quot;, year(as.Date(fromdate)))</strong></pre><pre>            collisionsdata &lt;- collisions %&gt;% filter(`Date Occurred` &gt;= fromdate, `Date Occurred` &lt; todate) %&gt;% extract(Location, c(&quot;Latitude&quot;, &quot;Longitude&quot;), &quot;\\(([^,]+), ([^)]+)\\)&quot;)</pre><pre>        }<br>    }<br>}</pre><p>With all of that in place, I will move to add the chart in. The first part of the chart is simply the merger of the base map and our ggplot2 chart:</p><pre><strong>chart &lt;- ggmap(ggmap=losangeles_map)</strong></pre><p>Then I add in the geom_density2d to provide the contours. The x and y variables are simply set to the longitude and latitude attributes of each row, respectively, and a size of 0.2 for the aesthetics:</p><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br><strong>chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)</strong></pre><p>I then add the true density plot; you can adjust the bins/size to suit your needs:</p><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br>chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br><strong>chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)</strong></pre><p>To allow a bit more control over the opacity, I added an alpha scale; again, feel free to adjust to your liking:</p><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br>chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br><strong>chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)</strong></pre><p>Yet another aesthetic ingredient you can adjust as needed, the gradient colors:</p><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br>chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br><strong>chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)</strong></pre><p>To make the chart as clean as possible, I opted to remove the title, axes, and other aesthetic burdens associated with the chart’s theme:</p><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br>chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br>chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)<strong><br>chart &lt;- chart+theme_void()</strong></pre><p>Finally, I add the label mentioned earlier to the top right quadrant of the chart (at the quadrant’s -118.23, 34.2). The “imagelabel” object is the label we created earlier:</p><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br>chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br>chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)<strong><br></strong>chart &lt;- chart+theme_void()<br><strong>chart &lt;- chart+geom_label(aes(x=-118.2, y=34.2), cex=10, label.padding=unit(.5, &quot;lines&quot;), label=imagelabel ,color=&quot;black&quot;, fill=&quot;white&quot;)</strong></pre><p>Now let’s add the chart into the function:</p><pre>heatmapFunction &lt;- function(){ <br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }<br>        for(month in 1:12){</pre><pre>            imagelabel = paste0(month(as.Date(fromdate), label=TRUE, abbr=FALSE), &quot; &quot;, year(as.Date(fromdate)))</pre><pre>            collisionsdata &lt;- collisions %&gt;% filter(`Date Occurred` &gt;= fromdate, `Date Occurred` &lt; todate) %&gt;% extract(Location, c(&quot;Latitude&quot;, &quot;Longitude&quot;), &quot;\\(([^,]+), ([^)]+)\\)&quot;)</pre><pre><strong>            chart &lt;- ggmap(ggmap=losangeles_map)<br>            chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>            chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>            chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br>            chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)<br>            chart &lt;- chart+theme_void()<br>            chart &lt;- chart+geom_label(aes(x=-118.2, y=34.2), cex=10, label.padding=unit(.5, &quot;lines&quot;), label=imagelabel ,color=&quot;black&quot;, fill=&quot;white&quot;)</strong></pre><pre>        }<br>    }<br>}</pre><p>Now that the hard part is done, we need to instruct the program to save the plot as an image (png, in my case), with a meaningful filename. After the r part is done, I’ll take these images into an image manipulation tool and create a gif — so the naming convention is important. Here I declare a filename, and prepend it with an index number to better facilitate sorting later:</p><pre>heatmapFunction &lt;- function(){<br>    <strong>count = 0</strong><br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }<br>        for(month in 1:12){</pre><pre>            <strong>count = count+1</strong></pre><pre><strong>            imageFilename = paste0(count, &quot;_&quot;, month(as.Date(fromdate), label=TRUE, abbr=FALSE), year(as.Date(fromdate)))</strong></pre><pre>            imagelabel = paste0(month(as.Date(fromdate), label=TRUE, abbr=FALSE), &quot; &quot;, year(as.Date(fromdate)))</pre><pre>            collisionsdata &lt;- collisions %&gt;% filter(`Date Occurred` &gt;= fromdate, `Date Occurred` &lt; todate) %&gt;% extract(Location, c(&quot;Latitude&quot;, &quot;Longitude&quot;), &quot;\\(([^,]+), ([^)]+)\\)&quot;)</pre><pre>            chart &lt;- ggmap(ggmap=losangeles_map)<br>            chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>            chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>            chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br>            chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)<br>            chart &lt;- chart+theme_void()<br>            chart &lt;- chart+geom_label(aes(x=-118.2, y=34.2), cex=10, label.padding=unit(.5, &quot;lines&quot;), label=imagelabel ,color=&quot;black&quot;, fill=&quot;white&quot;)<br>        }<br>    }<br>}</pre><p>Finally we instruct the program to save the plot as an image — note, I am storing in a subdirectory called “forgif”. You may need to create this directory before executing this function.</p><pre>heatmapFunction &lt;- function(){<br>    count = 0<br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }<br>        for(month in 1:12){</pre><pre>            count = count+1</pre><pre>            imageFilename = paste0(count, &quot;_&quot;, month(as.Date(fromdate), label=TRUE, abbr=FALSE), year(as.Date(fromdate)))</pre><pre>            imagelabel = paste0(month(as.Date(fromdate), label=TRUE, abbr=FALSE), &quot; &quot;, year(as.Date(fromdate)))</pre><pre>            collisionsdata &lt;- collisions %&gt;% filter(`Date Occurred` &gt;= fromdate, `Date Occurred` &lt; todate) %&gt;% extract(Location, c(&quot;Latitude&quot;, &quot;Longitude&quot;), &quot;\\(([^,]+), ([^)]+)\\)&quot;)</pre><pre>            chart &lt;- ggmap(ggmap=losangeles_map)<br>            chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>            chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>            chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br>            chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)<br>            chart &lt;- chart+theme_void()<br>            chart &lt;- chart+geom_label(aes(x=-118.2, y=34.2), cex=10, label.padding=unit(.5, &quot;lines&quot;), label=imagelabel ,color=&quot;black&quot;, fill=&quot;white&quot;)</pre><pre>            <strong>png(filename=paste0(&quot;forgif/&quot;,imageFilename,&quot;.png&quot;), width=665, height=500)<br>            plot(chart)<br>            dev.off()</strong><br>        }<br>    }<br>}</pre><p>Now let’s see it all together:</p><pre>library(ggplot2)<br>library(ggmap)<br>library(dplyr)<br>library(lubridate)<br>library(tidyr)</pre><pre>losangeles_map &lt;- get_map(location=&quot;Hollywood&quot;, zoom=11)</pre><pre>heatmapFunction &lt;- function(){<br>    count = 0<br>    for(year in 2010:2018){<br>        fromdate = paste0(year, &quot;-&quot;, month, &quot;-01&quot;)<br>        todate = paste0(year, &quot;-&quot;, month+1, &quot;-01&quot;)<br>        if(month==12){<br>            todate = paste0(year+1, &quot;-01-01&quot;)<br>        }<br>        for(month in 1:12){</pre><pre>            count = count+1</pre><pre>            imageFilename = paste0(count, &quot;_&quot;, month(as.Date(fromdate), label=TRUE, abbr=FALSE), year(as.Date(fromdate)))</pre><pre>            imagelabel = paste0(month(as.Date(fromdate), label=TRUE, abbr=FALSE), &quot; &quot;, year(as.Date(fromdate)))</pre><pre>            collisionsdata &lt;- collisions %&gt;% filter(`Date Occurred` &gt;= fromdate, `Date Occurred` &lt; todate) %&gt;% extract(Location, c(&quot;Latitude&quot;, &quot;Longitude&quot;), &quot;\\(([^,]+), ([^)]+)\\)&quot;)</pre><pre>chart &lt;- ggmap(ggmap=losangeles_map)<br>            chart &lt;- chart+geom_density2d(data=collisionsdata, aes(x = as.numeric(Longitude), y = as.numeric(Latitude)), size = .2)<br>            chart &lt;- chart+stat_density2d(data=collisionsdata, aes(x=as.numeric(Longitude), y=as.numeric(Latitude), fill=..level.., alpha=..level..),geom=&quot;polygon&quot;, size=1, bins=22)<br>            chart &lt;- chart+scale_alpha(range = c(.01, 0.2),guide=FALSE)<br>            chart &lt;- chart+scale_fill_gradient(low = &quot;blue&quot;, high = &quot;orange&quot;)<br>            chart &lt;- chart+theme_void()<br>            chart &lt;- chart+geom_label(aes(x=-118.2, y=34.2), cex=10, label.padding=unit(.5, &quot;lines&quot;), label=imagelabel ,color=&quot;black&quot;, fill=&quot;white&quot;)</pre><pre>            png(filename=paste0(&quot;forgif/&quot;,imageFilename,&quot;.png&quot;), width=665, height=500)<br>            plot(chart)<br>            dev.off()<br>        }<br>    }<br>}</pre><p>Upon completion, you can run “heatmapFunction()” in your r console, and it will begin compiling the images into the directory you specified. Note, this process could take anywhere between 1–5 minutes.</p><p>There are various tools you can use to create the gif from these images. Adobe has a wonderful <a href="https://helpx.adobe.com/photoshop/how-to/make-animated-gif.html">tutorial on creating animated gifs in Photoshop</a> that’s very comprehensive. There’s also an easy to follow <a href="https://www.youtube.com/watch?v=APJN1HCZS3U">tutorial on creating an animated gif in GIMP</a>. If you don’t have either of those platforms, no worries, you can use the service <a href="http://gifmaker.me/">GifMaker.me</a>, which takes care of everything for you!</p><p>I hope you enjoyed this walkthrough, and if you have any questions, comments, or suggestions, please don’t hesitate to contact me or post a comment!</p><p>Wow! you made it all the way to the end! Thank you! Please add me on twitter <a href="https://twitter.com/ntzri">@ntzri</a> and let me know what you think!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6bf5edd1402" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Nonprofit’s Guide to CAN-SPAM Compliance]]></title>
            <link>https://medium.com/@sentezari/a-nonprofits-guide-to-can-spam-compliance-b1950e3be91c?source=rss-da391f4a5456------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1950e3be91c</guid>
            <category><![CDATA[law]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[nonprofit]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[email-marketing]]></category>
            <dc:creator><![CDATA[Steven Entezari]]></dc:creator>
            <pubDate>Tue, 17 Jan 2017 17:01:15 GMT</pubDate>
            <atom:updated>2017-01-17T17:01:15.437Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*ghFu1a7AuNz4aa21VR1zUA.png" /></figure><p>Email marketing continues to be a powerful driver of donations for nonprofits around the world. It’s estimated that approximately <a href="https://www.networkforgood.com/nonprofitblog/does-your-email-fundraising-measure-up/">one-third of all online donations are a result of email marketing</a>; and that number <a href="https://www.networkforgood.com/nonprofitblog/does-your-email-fundraising-measure-up/">continues to grow</a>!</p><p>As attractive as email marketing is for nonprofits (<a href="http://www.nptechforgood.com/2015/09/16/20-must-know-fundraising-and-social-media-stats/">forty dollars raised for every one dollar spent</a>), nonprofits should take heed to laws regulating the potential abuse of this ubiquitous medium. It should be noted that this blog addresses the <em>regulations</em> surrounding email marketing, and doesn’t include a full set of best-practices. To learn more about best practices in email marketing, I highly suggest exploring <a href="http://blog.bronto.com/">this blog by Bronto</a>, the <a href="http://blog.bronto.com/news/bronto-is-no-1-provider-internet-retailer-top-1000-third-year/">leading Email Marketing Platform to the Internet Retailer 1000</a>. Full disclosure, <a href="http://blog.bronto.com/brontonation/day-life-professional-services-practice-manager/">I am a Bronto</a>!</p><p><em>The CAN-SPAM Act of 2003</em></p><p>While SPAM is a nuisance that’s experienced <a href="http://content.time.com/time/business/article/0,8599,1933796,00.html">all over the web (email, blogs, IMs, etc)</a>, no media has been so inundated as that of your email. In 2003, the Bush administration signed into law the <em>Controlling the Assault of Non-Solicited Pornography and Marketing</em> Act. While commonplace now, let it not be lost that <a href="https://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003">these were the first government-enforced regulations</a> of B2C online-communication.</p><blockquote>While commonplace now, let it not be lost that <a href="https://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003">these were the first government-enforced regulations</a> of B2C online-communication.</blockquote><p>That being said, the government regulation does not have an exception for nonprofit organizations; thus these rules apply to both for-profit and nonprofit organizations. Below, I discuss a breakdown of the CAN-SPAM Act’s requirements, and some examples of its application to nonprofit email campaigns. These requirements, and additional details, can be found on the <a href="https://www.ftc.gov/tips-advice/business-center/guidance/can-spam-act-compliance-guide-business"><em>Federal Trade Commission’s </em>guide</a>.</p><p>Below are the seven essential requirements to maintaining CAN-SPAM compliance during your email-campaigns:</p><p><strong>Don’t use false or misleading header information. </strong>Header information includes the From, To, Reply-To, and routing information (e.g., domain name) related to the server you’re sending emails from. The routing information should be taken care of by your ESP, if you’re using one. If you’re not using one, you should strongly consider it, as most good ESPs assist with SPAM-CAN compliance. The email addresses you use to represent your organization should have a clear tie back to your organization, represent the entity that’s reaching out, and allow respondents to email them back. Stay away from “donotreply@nonprofit.org”. For general email campaigns, I suggest something like “donations@nonprofit.org” or “donation-help@nonprofit.org”.</p><p><strong>Don’t use deceptive subject lines.</strong> Simply put, your subject line should not attempt to mislead your donor. There are <a href="https://www.causevox.com/blog/fundraising-email-subject-lines/">many</a>, <a href="http://www.nonprofitpro.com/article/the-best-nonprofit-email-subject-lines-of-2015/">many</a>, <a href="http://www.convio.com/our-research/newsletter/what-makes-an-email-newsletter-subject-line-successful.html">many</a>, blogs that discuss best-practices, and suggestions, for subject-lines to improve open rates; and I recommend the three listed before. However, to be in compliance with the CAN-SPAM regulations, simply be honest in what the “subject” of your email is. It’s important to note that donors are constantly faced with illegal and malicious <a href="http://www.mediapost.com/publications/article/292919/beware-of-that-charity-email.html">emails posing as nonprofits in an effort to steal people’s identity</a>.</p><blockquote>Donors are constantly faced with illegal and malicious <a href="http://www.mediapost.com/publications/article/292919/beware-of-that-charity-email.html">emails posing as nonprofits in an effort to steal people’s identity</a>.</blockquote><p><strong>Identify the message as an ad. </strong>While this one is a bit more of a formality, you must inform the client that the message you are sending is an advertisement, or solicitation for donations. This is usually a non-issue, because it’s made obvious in the email’s call-to-action.</p><p><strong>Tell recipients where’ you’re located.</strong> In my experience, this is the most violated CAN-SPAM regulation amongst nonprofits. The FTC requires that a physical postal address be included in your emails, usually placed in the footer, to ensure that recipients can, in some way, contact your organization.</p><p>It’s important to note that many groups try to consolidate this information into an image in their footer — don’t do that. While this <em>technically</em> complies with the FTC’s regulations, ESPs will sometimes categorize an email as spam if its bots can’t find an address in the <em>text</em> of the email.</p><blockquote>Many groups try to CAN-SPAM requirements into an image in their footer — don’t do that.</blockquote><p><strong>Tell recipients how to opt out of receiving future email from you.</strong> In any email, donors should be afforded the opportunity to opt out of future emails from your organization. This is most easily, and standardly, done by incorporating an unsubscribe link at the bottom of your email. Ultimately, if a donor no longer wants you to solicit to them, it’s common courtesy (and law) to remove them from your list.</p><blockquote>Ultimately, if a donor no longer wants you to solicit to them, it’s common courtesy (and law) to remove them from your list.</blockquote><p><strong>Honor opt-out requests promptly.</strong> Once a donor has decided to discontinue their receipt of emails from your organization, you must honor their request in a timely (10 days) and easy (applying no burden to the donor) manner. Many times, the company an organization uses to send emails schedule sends for weeks in advance. As you’ll see in the next point, it’s the organization’s responsibility to ensure that the contracted company stops sending — however this is usually done automatically.</p><p><strong>Monitor what others are doing on your behalf.</strong> Simply put, it’s your legal responsibility to comply with the law. If you are contracting with another company, be sure you fully understand how they take steps to comply with CAN-SPAM regulations.</p><p><em>Conclusion</em></p><p>The regulations outlined above are a summary of the CAN SPAM regulation. Please take some time to get familiar with <a href="http://www.ecfr.gov/cgi-bin/retrieveECFR?gp=1&amp;SID=cea8be427690a26231dda41b8ccb5f75&amp;ty=HTML&amp;h=L&amp;n=16y1.0.1.3.40&amp;r=PART">the official CAN-SPAM Rules</a>. These regulations apply to marketing-messages only; messages of transactional nature don’t need to follow the regulations above. Transactional messages include donation thank-you messages, updates on events that the donor has already signed up for, and any-other transaction that the donor has <em>already</em> previously engaged your organization in.</p><p>Penalties for violating the CAN-SPAM act are quite hefty. Each individual non-compliant email carries penalties of up to $16,000, while the content of the email may itself be subject to separate penalties under separate FTC regulations.</p><blockquote>Each individual non-compliant email carries penalties of up to $16,000.</blockquote><p>These CAN-SPAM regulations are relevant for emails received by donors in the United States of America. If you are soliciting donors in different countries, you should become knowledgeable of the rules and regulations in place <a href="https://en.wikipedia.org/wiki/Email_spam_legislation_by_country">in those respective countries</a>. Here’s a great <a href="https://litmus.com/blog/the-ultimate-guide-to-international-email-law-infographic">infographic</a> of global spam laws.</p><p>Also, if you’re interested in why it’s called SPAM, watch <a href="https://www.youtube.com/watch?v=anwy2MPT5RE">this Monty Python video</a> to unlock the mystery :).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1950e3be91c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Better Email Campaigns Using a Human-Centered Approach]]></title>
            <link>https://medium.com/@sentezari/human-centered-email-design-b1361f4de45f?source=rss-da391f4a5456------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1361f4de45f</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[human-centered-design]]></category>
            <category><![CDATA[email-marketing]]></category>
            <dc:creator><![CDATA[Steven Entezari]]></dc:creator>
            <pubDate>Wed, 31 Aug 2016 14:27:44 GMT</pubDate>
            <atom:updated>2016-12-26T11:19:35.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1P39UzEftYV2GrVPhiPXNA.jpeg" /></figure><p>Human Centered Design is no new concept to practitioners of User Experience and Human Computer Interaction. There are dozens of blogs discussing the benefits, and necessity, of incorporating user experience protocols into email marketing initiatives; and <a href="https://isenselabs.com/posts/how-to-improve-email-marketing-using-principles-of-ux-design">some are extremely helpful</a>. Unfortunately, the term <em>user experience</em> has been used as a cliché, catch-all, overarching solution to a complex problem. Where the overall user experience of email marketing is essential to a company’s thriving marketing endeavors, human-centered design is the impetus of user experience.</p><p>For decades, the computing industry has recognized the need to focus the development of interactive systems around the human-operator’s abilities, needs, and motivations. Over 17 years ago, the International Organization for Standardization instantiated <a href="http://www.iso.org/iso/catalogue_detail.htm?csnumber=21197">ISO 13407:1999</a> to define human-centered design processes for interactive systems (later <a href="http://www.userfocus.co.uk/articles/iso-13407-is-dead.html">updated/reissued</a> as <a href="http://www.iso.org/iso/home/store/catalogue_ics/catalogue_detail_ics.htm?csnumber=52075">ISO 9241–210:2010</a> in 2010, and revised in 2015). With the increased focus on segmentation, personalization, and behavior-based messaging, emails are solidifying their presence as an interactive system now more than ever; especially in eCommerce.</p><p>Unfortunately, web standards in email html have stagnated, and so have corresponding design methodologies. With little support for styling in messages, and providers like <a href="https://litmus.com/blog/understanding-gmail-and-css-part-1">Gmail stripping out head, body, and style tags in emails</a>, it is increasingly difficult to personalize the user’s experience. Conversely, the definition of human-centered design has matured with time and exercise while the concept of <em>interactive systems</em> has not adequately integrated email; the most used digital communication medium.</p><p>Incorporating human-centered design into email marketing endeavors can be a game-changer, but will require a shift from traditional thought. Here are a few key points to take into consideration:</p><p><strong><em>Participatory design</em></strong> is the <a href="http://www.uxpassion.com/blog/participatory-design-what-makes-it-great/">practice of involving all people that touch, or are touched, by a system, to participate in the development of said system</a>. The act of involving many-to-all subsets of stakeholders ensures the experience addresses the unique needs of each group. Understanding what customer’s want from a company is important, but understanding what they can stomach from the short time you have with them in an email is crucial to ensuring maximal value <a href="https://www.entrepreneur.com/article/232266">within that first 8 seconds</a>. With the amount of open/click/conversion data collected by email marketers, it’s incredibly easy to assemble a focus group of the most-to-least engaged subscribers and ask for their thoughts (don’t forget to sweeten the deal by including a nice discount for their time). Run ideas by them to keep the incentives grounded, and the content meaningful.</p><p>While participatory design is the act of bringing<em> </em>stakeholders <em>into</em> the design process, don’t hesitate to participate in the designs of other’s as a customer! Explore consuming other vendors to identify what you do-and-don’t like as a consumer; remember, to be good designers, we must first be good users.</p><p><strong><em>Affordances, Signifiers, and Constraints</em></strong> are the three most fundamental principles of human-centered design. Designing emails to enhance these HCD traits will benefit the user’s experience by emphasizing the user’s needs and motivations.</p><p>An <em>affordance</em> is the inherent manifestation of an object’s capabilities as a property of it’s system. Affordances exist in both the physical and virtual space; however, due to constraints on email development, affordances are a bit more restricted. The main ones that come to mind are to click, take a screenshot, scroll down/up, and copy (think coupon code).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4sea5PiiIzHNRSXtFwAvLQ.jpeg" /><figcaption>Notice the “Book Now” button on the left <em>entices the user to click far less than the “Learn More” button o the right.</em></figcaption></figure><p>A <em>signifier</em> is the cue that communicates an action to take upon an object in a system. This can manifest itself in email as a button that looks clickable, right angles at corners of an object to entice a screenshot, <a href="http://www.emailmarketingrules.com/9-ways-to-get-subscribers-to-scroll/">arrows/chevrons to suggest a scroll to view items below the fold</a>, and shaded text to highlight/copy. Usually a signifier is used to indicate the action that an object affords, therefore pairing signifiers with affordances in most cases.</p><p>A <em>constraint</em> is an intentionally-designed hindrance of use to guide the user towards an object’s intended purpose. Due to the <em>flat</em> nature of html email-design, many of these constraints are placed via the email provider (or are simply nonexistent). Designer’s can force a screenshot of a coupon code by applying it as an image — thus forcing the user to save the image, or take a screenshot. Another popular example of a constraint in email marketing is the incorporation of a QR code (or barcode). By opting not to link the QR code to a hyperlink, you ensure they user acts upon the QR code as it was intended; to be scanned.</p><p><strong><em>Testing and Feedback</em></strong><em> </em>mechanisms, deeply engrained in the design process, allow a grounded, and iterative approach to creating that highly-engaging email. By testing on the most-and-least engaged openers, you have an opportunity to explore the needs of each group, and iteratively change your design to address the respective group. If there’s a drop in open rates from the most loyal fans, but an increase from the least-engaged fans, what emerges is a template of design for future re-engagement campaigns. A/B testing is great for ad hoc human-centered testing, but HCD starts before this; before declaring a winner from 20% of your base. It happens during the design of your email. Gathering feedback from clients is too often overlooked by many marketers. Whether it’s ego or ignorance, many tend to think they need to interpret intent and motivation from open rates; go straight to the horse’s mouth and find out what your clients want to see! The intuitive ability to identify trends from empirical open rates is crucial for a marketer; but not for design — rely on the data.</p><p>Email design is a craft that requires an elementary level of skill to <em>implement</em>, but an extremely tenured, and professional, background to <em>implement correctly</em>. With an average of <a href="http://www.emarketer.com/Article/How-Much-Revenue-Email-Drive/1013001">roughly 25% (and growing)</a> of overall revenue being attributed to email, it’s increasingly more important for your email to stand-out and be something a user can interpret meaningfully, as designed for their needs and motivations. Incorporating human-centered design into the development of an email campaign will improve the overall experience of a user’s interaction with an email, and lead to a smooth segue into increased click-throughs and conversions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1361f4de45f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>