<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cycling &#8211; ilari.scheinin.fi</title>
	<atom:link href="https://ilari.scheinin.fi/category/cycling/feed/" rel="self" type="application/rss+xml" />
	<link>https://ilari.scheinin.fi</link>
	<description></description>
	<lastBuildDate>Mon, 27 Feb 2017 17:57:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.9</generator>
	<item>
		<title>Where I&#8217;ve Been and How?</title>
		<link>https://ilari.scheinin.fi/where-ive-been-and-how/</link>
		
		<dc:creator><![CDATA[Ilari Scheinin]]></dc:creator>
		<pubDate>Wed, 08 Jul 2015 12:24:44 +0000</pubDate>
				<category><![CDATA[cycling]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[transportation]]></category>
		<guid isPermaLink="false">http://ilari.scheinin.fi/?p=401</guid>

					<description><![CDATA[I have been running the Moves app on my phone for almost two years. I guess its main idea is to be an activity tracker; it&#8217;ll tell you how much you&#8217;ve walked, ran, or ridden a bike, without you having &#8230; <a href="https://ilari.scheinin.fi/where-ive-been-and-how/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>I have been running the <a href="http://moves-app.com">Moves app</a> on my phone for almost two years. I guess its main idea is to be an activity tracker; it&#8217;ll tell you how much you&#8217;ve walked, ran, or ridden a bike, without you having to remember to turn it on before starting an &#8220;activity&#8221;. But for me the main point isn&#8217;t as much the activity part as it is the tracking part. Without me having to do anything, the app silently collects data about my movements in the background. I can then download the accumulated data and play around with it in R.</p>
<p>When I was at the <a href="https://www.recurse.com">Recurse Center</a>, I needed a little project to work on learning <a href="https://github.com/hadley/ggplot2">ggplot2</a> and <a href="https://github.com/rstudio/shiny">shiny</a>, and chose to do a remake of this old <a href="https://ilari.scheinin.fi/how-i-move/">blog post</a> on the shares of different modes of transportation I use. The end result is packaged into a <a href="https://ilari.scheinin.fi/shiny/moves-share/">shiny app</a>, and shows for example that in New York I walked a lot more than I used to while living in Amsterdam or Helsinki, and that last summer I spent a lot of time on boats. A more subtle difference is that in Amsterdam I seemed to use trams only for commuting to work.</p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/07/moves-share.png"><img loading="lazy" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/07/moves-share.png" alt="moves-share" width="900" height="360" class="alignnone size-medium wp-image-403" /></a></p>
<p>I also wanted to try out some mapping with <a href="https://github.com/rstudio/leaflet">leaflet</a>, and made another <a href="https://ilari.scheinin.fi/shiny/moves-nyc/">app</a> that shows all my movement while I was in New York. If all checkboxes are turned on, four months of data seems to be a bit much to handle performance-wise, and the app becomes slow and sometimes crashes (turns gray and stops responding). Anyways, it was a fun experiment to do.</p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/07/moves-nyc.png"><img loading="lazy" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/07/moves-nyc.png" alt="moves-nyc" width="1250" height="685" class="alignnone size-full wp-image-402" /></a></p>
<p>The source code is available on <a href="https://github.com/ilarischeinin/moves">GitHub</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Citi Bikes and Neighborhoods</title>
		<link>https://ilari.scheinin.fi/citi-bikes-and-neighborhoods/</link>
		
		<dc:creator><![CDATA[Ilari Scheinin]]></dc:creator>
		<pubDate>Wed, 08 Jul 2015 12:24:13 +0000</pubDate>
				<category><![CDATA[cycling]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[transportation]]></category>
		<category><![CDATA[urban]]></category>
		<guid isPermaLink="false">http://ilari.scheinin.fi/?p=387</guid>

					<description><![CDATA[New York City has an excellent bike sharing system called Citi Bikes. When I was at the Recurse Center, I frequently used the bikes for commuting. What was annoying though, was that every now and then all the nearby docks &#8230; <a href="https://ilari.scheinin.fi/citi-bikes-and-neighborhoods/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>New York City has an excellent bike sharing system called <a href="http://www.citibikenyc.com">Citi Bikes</a>. When I was at the <a href="https://www.recurse.com">Recurse Center</a>, I frequently used the bikes for commuting. What was annoying though, was that every now and then all the nearby docks were empty by the time I was leaving. I guess this was because it was mostly a residential area, so in the mornings people would grab the bikes and ride them to work, and in the evenings the bikes would flow back. A business district would naturally see the opposite pattern. (I know the operators rebalance bikes between stations, but I don&#8217;t know if this happens intra-day or just to correct slower drift patterns.)</p>
<p>In addition to being a convenient way to move around, another nice thing about the system is that they release their <a href="http://www.citibikenyc.com/system-data">ride data</a> publicly. I decided do a little experiment in R. I downloaded all their data and used <a href="https://github.com/hadley/dplyr">dplyr</a> to count the number of bikes arriving to and leaving from each station. I did that for each hour of the day and separately for weekdays and weekends.</p>
<p>In order to visualize the patterns, I plotted them with <a href="https://github.com/dkahle/ggmap">ggmap</a> and made a little <a href="https://github.com/rstudio/shiny">shiny</a> <a href="https://ilari.scheinin.fi/shiny/citibike-flow/">app</a>.</p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/06/flow.png"><img loading="lazy" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/06/flow.png" alt="flow" width="850" height="510" class="alignnone size-full wp-image-388" /></a></p>
<p>To identify neighborhoods with similar usage patterns, I used K-means clustering and put the results in another shiny <a href="https://ilari.scheinin.fi/shiny/citibike-neighborhoods/">app</a>. It also contains a plot of the variance explained for assessing a suitable value for K.</p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/06/neighborhoods.png"><img loading="lazy" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2015/06/neighborhoods.png" alt="neighborhoods" width="600" height="438" class="alignnone size-medium wp-image-389" /></a></p>
<p>The source code is available on <a href="https://github.com/ilarischeinin/citibikes">GitHub</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How I Move</title>
		<link>https://ilari.scheinin.fi/how-i-move/</link>
		
		<dc:creator><![CDATA[Ilari Scheinin]]></dc:creator>
		<pubDate>Thu, 02 Oct 2014 09:22:44 +0000</pubDate>
				<category><![CDATA[cycling]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[transportation]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://ilari.scheinin.fi/?p=345</guid>

					<description><![CDATA[With 12 full months of Moves data, I thought it would be a fun experiment to make some plots. These show how I move around in terms of time spent and distance traveled, both for relative share of each mode &#8230; <a href="https://ilari.scheinin.fi/how-i-move/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>With 12 full months of <a title="Moves" href="http://moves-app.com">Moves</a> data, I thought it would be a fun experiment to make some plots. These show how I move around in terms of time spent and distance traveled, both for relative share of each mode of transport, and for the total time or distance. Flying is excluded.</p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/duration-share.png"><img loading="lazy" class="alignnone size-medium wp-image-348" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/duration-share-300x212.png" alt="duration-share" width="300" height="212" /></a></p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/distance-share.png"><img loading="lazy" class="alignnone size-medium wp-image-346" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/distance-share-300x212.png" alt="distance-share" width="300" height="212" /></a></p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/duration-total.png"><img loading="lazy" class="alignnone size-medium wp-image-349" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/duration-total-300x212.png" alt="duration-total" width="300" height="212" /></a></p>
<p style="text-align: center;"><a href="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/distance-total.png"><img loading="lazy" class="alignnone size-medium wp-image-347 aligncenter" src="https://cdn.ilari.scheinin.fi/wp-content/uploads/2014/10/distance-total-300x212.png" alt="distance-total" width="300" height="212" /></a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 18/98 objects using Disk
Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn.ilari.scheinin.fi
Database Caching 1/19 queries in 0.009 seconds using Disk

Served from: ilari.scheinin.fi @ 2025-02-02 02:07:09 by W3 Total Cache
-->