<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/residential-property-investment-visualization-and-analysis-shiny-app/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://nycdatascience.com/blog/student-works/residential-property-investment-visualization-and-analysis-shiny-app/"> R – NYC Data Science Academy Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/action-america-architecture-378570-1024x655.jpg?w=450&ssl=1" alt="" class="wp-post-image" data-recalc-dims="1"></p>
<p><span><strong>Introduction:</strong></span></p>
<p><span>The purpose of this Shiny web app is to better advise clients in residential property investments in New York City by visualizing sales and rental market trends in major areas.</span></p>
<p><span>Check out the app <a rel="nofollow" href="https://siyuanli.shinyapps.io/REexplorer/" target="_blank">HERE</a>, and find the code <a rel="nofollow" href="https://github.com/siyuanligit/RExplorer" target="_blank">HERE</a>.</span></p>
<p><span><strong>Data:</strong></span></p>
<p><span>Sales and rental data are compiled from <a rel="nofollow" href="https://streeteasy.com/blog/download-data/" target="_blank">OneBlockOver by Streeteasy</a>. The dataset used in this web app is combined using:</span></p>
<p><span>– Borough</span><br>
<span>– Neighborhood</span><br>
<span>– Date</span><br>
<span>– Condo Listing Median Price</span><br>
<span>– Condo Sale Median Price</span><br>
<span>– Rental Studio Median Price</span><br>
<span>– Rental One Bedroom Median Price</span><br>
<span>– Rental Two Bedroom Median Price</span><br>
<span>– Rental Three+ Bedroom Median Price</span></p>
<p><span>Boroughs in consideration are Manhattan, Brooklyn, Queens.</span><br>
<span>The date of the data point ranges from Jan 2014 to Aug 2018, aggregated monthly.</span></p>
<p><span>Boundary data of the neighborhoods are acquired from <a rel="nofollow" href="http://data.beta.nyc/" target="_blank">data.beta.nyc</a>.</span></p>
<p> </p>
<p><span><span>How to use this web app</span><strong><span>:</span></strong></span></p>
<p><span>Start by clicking on the “Visualization” tab on the side menu to go to the visualization page. Beware that it takes a little time to load so don’t be startled by the error messages. Voilà!</span></p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/1.png" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/1-1024x576.png?w=450" alt="" class="wp-image-38239" data-recalc-dims="1"></a></p>
<p><span>First, choose a borough and neighborhood from the right side of the page.</span></p>
<p><a rel="nofollow" href="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/2.png" target="_blank"><img sizes="(max-width: 582px) 100vw, 582px" src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/2.png?w=450" alt="" class="wp-image-38240" data-recalc-dims="1"></a></p>
<p><span>Then, you will see that the neighborhood you selected will be highlighted on the map at the top of the page.</span></p>
<p><a rel="nofollow" href="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/3.png" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/3-1024x275.png?w=450" alt="" class="wp-image-38241" data-recalc-dims="1"></a></p>
<p><span>On the bottom left, there will be a brief summary of the market trend of property sales in your chosen neighborhood, whether it has been increasing or decreasing. And it will provide a rough estimate of the percentage change in property value and value prediction for 2019 and 2023 (5 years). You can also opt to see an interactive chart of Listing and Sale price over the years.</span></p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/4.png" target="_blank"><img sizes="(max-width: 549px) 100vw, 549px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/4.png?w=450" alt="" class="wp-image-38242" data-recalc-dims="1"></a> <a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/5.png" target="_blank"><img sizes="(max-width: 548px) 100vw, 548px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/5.png?w=450" alt="" class="wp-image-38243" data-recalc-dims="1"></a></p>
<p><span>On the bottom right, there is a chart showing the rental prices for different properties types, whether it is a Studio, One Bedroom, or even Three+ Bedroom.</span></p>
<p><a rel="nofollow" href="https://i2.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/6.png" target="_blank"><img sizes="(max-width: 549px) 100vw, 549px" src="https://i2.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/6.png?w=450" alt="" class="wp-image-38244" data-recalc-dims="1"></a></p>
<p><span>You will notice a slider and selector bel</span><span>ow the location selectors, it is used to set a budget and a room count so that the tool will calculate a rough estimate of your mortgage payment, given 20% down payment,  30-year term, and an annual rate of 5.04%.</span></p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/7.png" target="_blank"><img sizes="(max-width: 388px) 100vw, 388px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/10/7.png?resize=388%2C639" alt="" width="388" class="wp-image-38245" data-recalc-dims="1" height="639"></a></p>
<p><span><strong>Future Works:</strong></span></p>
<ul>
<li><span>There is some backend issue with the interface that will require an overhaul, which I will tackle first.</span></li>
<li><span>Still making improvements on the map feature. The idea is to show nearest neighborhood info on the map for comparison.</span></li>
<li><span>Dataset is not really complete for neighborhoods that brokers do not post listings on Streeteasy. Need more detailed and comprehensive data.</span></li>
<li><span>Need more features to consider such as crime rate, school ranking, etc. for different neighborhoods. </span></li>
</ul>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://nycdatascience.com/blog/student-works/residential-property-investment-visualization-and-analysis-shiny-app/"> R – NYC Data Science Academy Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/ylgHPD0kRCw" height="1"></a></div>