<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/hottest-opportunities-and-trends-in-solar-business/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://nycdatascience.com/blog/r/hottest-opportunities-and-trends-in-solar-business/"> 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 src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/solar-cash-falling.0.jpg?resize=1%2C1&ssl=1" width="1" alt="" class="wp-post-image" data-recalc-dims="1" height="1"></p>
<h1><span>Background</span></h1>
<p>Do you like earning money? And, at the same time contribute to saving the planet? What if I prove to you Solar Business is the next booming field having plenty of opportunities in coming decades, with plus point of reducing our carbon footprint.</p>
<p>You’d argue…Really? But solar installations are so expensive! They are not even efficient! Why would anyone even install them?</p>
<p>Ah! Let me correct you, solar installations ‘were’ expensive and ‘were’ inefficient. It’s like almost everyone right now is working on driving down the cost of solar power and increasing it’s efficiency. This is what got me interested and I started doing some analysis in this field. Please read on to know more.</p>
<h1><span>Introduction</span></h1>
<p>Since this was my first R project, excitedly I started looking for some datasets with solar installations and found an interesting dataset on <a rel="nofollow" href="https://www.kaggle.com/jboysen/google-project-sunroof/data" target="_blank">Kaggle for Google Project Sunroof </a>– an impressive concept where data from Google Earth is used to get the pictures of your house roof to analyze how much energy from sunlight you can harvest and further calculate the monetary benefits you can yield from solar installation. The dataset had most of the information I needed for my analysis. I also, downloaded data for Coal and Natural Gas consumption for electricity from <a rel="nofollow" href="https://www.eia.gov/electricity/reports.php#/T194" target="_blank">U.S. Energy Information Administration</a>, to see how much Coal and Natural Gas is actually being used by various states. Another missing piece in the puzzle was financial angle; for this I used Photo Voltaic Cell cost data from <a rel="nofollow" href="https://www.nrel.gov/" target="_blank">National Renewable Energy Laboratory.</a></p>
<p>I processed the datasets in <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">R language</a> using Dplyr, TidyR and StringR packages. I used Ggplot, Leaflet, Plotly and Googlevis libraries to plot the graphs. Finally, I created an application of all the graphs using R Shiny package.</p>
<h1><span>Analysis</span></h1>
<h2><span>1. Solar Energy Share in Electricity Generation:</span></h2>
<p>According to <a rel="nofollow" href="https://www.eia.gov/tools/faqs/faq.php?id=427&t=8" target="_blank">U.S. Energy Information Administration</a>, in 2016, about 65% of electricity generation was from fossil fuels (coal, natural gas, petroleum, and other gases), about 20% was from nuclear energy, and about 15% was from renewable energy sources, out of which only 0.9 % was from Solar Energy.</p>
<p><a rel="nofollow" href="https://i2.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.10.41-PM.png" target="_blank"><img sizes="(max-width: 421px) 100vw, 421px" src="https://i2.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.10.41-PM.png?resize=421%2C332" alt="" width="421" class="wp-image-28109" data-recalc-dims="1" height="332"></a></p>
<h2><span>2. Coal and Natural Gas Consumption:</span></h2>
<p>From the above graph we can see, <a rel="nofollow" href="https://www.eia.gov/state/analysis.php?sid=TX" target="_blank">largest sources of electricity</a> are Coal and Natural Gas. I wanted to further analyze, how different states in US consume these 2 sources to generate electricity. I created an animated graph in Googlevis to show animation for all the years from 2001 through 2017. Below is the snapshot of the animation graph for the year 2001. The graph for coal could be little biased. In reality, Texas consumes largest coal. The values for Texas were so high, that I had to normalize it to make other states visible on the map. I did not normalize the Natural Gas Texas value as other states were still visible on this map.</p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.11.10-PM.png" target="_blank"><img sizes="(max-width: 437px) 100vw, 437px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.11.10-PM.png?resize=437%2C301" alt="" width="437" class="wp-image-28101" data-recalc-dims="1" height="301"></a><img sizes="(max-width: 443px) 100vw, 443px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.11.23-PM.png?resize=443%2C300" alt="" width="443" class="wp-image-28102" data-recalc-dims="1" height="300"></p>
<h2><span>3. Total Sunlight Received by US:</span></h2>
<p>US is a large land mass and I always wondered, how much sunlight do we really get. I was curious to find out which states get most sunlight and how can we harness it. I plotted below graph using leaflet by adding shape file for counties. Notice the ranking on the right table clearly shows that states in the southern part of the country get most sunlight. Let’s quickly compare data for Texas: It uses 95 M tonnes of coal annually on average. It receives about 117, 568, 363, 600, 000 KWH solar energy annually on average. If we actually harness this solar energy, we could save large amount of green house gas emissions caused by burning tonnes of coal. Also see <a rel="nofollow" href="https://science.howstuffworks.com/environmental/energy/question481.htm" target="_blank">this</a>.</p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.12.31-PM.png" target="_blank"><img sizes="(max-width: 607px) 100vw, 607px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.12.31-PM.png?w=450" alt="" class="wp-image-28104" data-recalc-dims="1"></a><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.12.17-PM.png" target="_blank"><img sizes="(max-width: 258px) 100vw, 258px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.12.17-PM.png?resize=258%2C351" alt="" width="258" class="wp-image-28103" data-recalc-dims="1" height="351"></a></p>
<h2><span>4. Solar Installation Cost Analysis:</span></h2>
<p>I plotted below graph using Dygraph package. It shows how cost of Photo Voltaic Cells / watt has reduced in last 7 years.</p>
<p>US department of energy has an initiative – the <a rel="nofollow" href="http://energy.gov/eere/sunshot/sunshot-initiative" target="_blank">SunShot Initiative</a>, focussed entirely on driving down the cost of electricity generated by solar panels. And the average cost of solar energy generation has dropped 82% in the past decade. US Government is supporting the solar installation by giving <a rel="nofollow" href="https://news.energysage.com/congress-extends-the-solar-tax-credit/" target="_blank">federal investment tax credits</a> (up to 30%), rebates and even forming laws such as ‘<a rel="nofollow" href="http://www.gosolarcalifornia.ca.gov/" target="_blank">Go Solar California</a>‘.  All these facts mean, more and more people would want to benefit from installing solar panels. Since not too many homes have solar panels installed yet, solar panel installation is going to be huge in coming time. According to an article in <a rel="nofollow" href="https://www.forbes.com/sites/peterdiamandis/2014/09/02/solar-energy-revolution-a-massive-opportunity/#736f2fd56c90" target="_blank">Forbes</a>, there could be almost trillions dollars up for grabs. Exciting isn’t it?</p>
<p> </p>
<p><a rel="nofollow" href="https://i2.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.12.56-PM.png" target="_blank"><img sizes="(max-width: 552px) 100vw, 552px" src="https://i2.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.12.56-PM.png?w=450" alt="" class="wp-image-28105" data-recalc-dims="1"></a></p>
<h2><span>5. Reduce our Carbon Footprint:</span></h2>
<p>Further, let’s not forget the environmental perspective. Did you know, <a rel="nofollow" href="http://www.dailymail.co.uk/sciencetech/article-3504667/New-York-London-underwater-DECADES-Scientists-say-devastating-climate-change-place-sooner-thought.html" target="_blank">if we do not dramatically reduce the greenhouse gas emissions</a>, the global sea level is likely to increase ‘several meters over a timescale of 50 to 150 years’, which could drown 50% of NYC under water. Oh No!</p>
<p>However, Solar Energy, unlike any other non renewable energy sources does not produce harmful pollutants in the air. And yes, it is high time we understand it’s benefits and reduce our carbon footprint.</p>
<p>Below graph, plotted using leaflet shows us top 50 cities that can contribute to the carbon offset (radius of red circles showing the amount of carbon offset). Notice how most of the cities are in the southern part…hmm.</p>
<p><a rel="nofollow" href="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.13.38-PM.png" target="_blank"><img sizes="(max-width: 886px) 100vw, 886px" src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-4.13.38-PM.png?w=450" alt="" class="wp-image-28106" data-recalc-dims="1"></a></p>
<p> </p>
<h2><span>6. Solar Installation Opportunities:</span></h2>
<p>So, with all this said, aren’t we excited to plunge into harnessing the benefits? I know you’d say – Yes! But where do we start? I have plotted below graph in ggplot, to research the top 15 states with highest opportunities. I have scaled the ‘Existing Installs’ by 10 times to make it visible on the graph. This graph clearly shows there is plenty of opportunity to try our luck doing some business in this field.</p>
<p><a rel="nofollow" href="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-7.13.35-PM.png" target="_blank"><img sizes="(max-width: 1189px) 100vw, 1189px" src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/02/Screen-Shot-2018-02-04-at-7.13.35-PM.png?w=450" alt="" class="wp-image-28139" data-recalc-dims="1"></a></p>
<p> </p>
<h1><span>Future Work</span></h1>
<p>There’s so much more to research here. I really want to work to find how the solar power generation efficiency is improving, and so is the average capacity factor of utility-scale. I would also like to research on how much investment firms are keen in this field. After that, I want to use some R packages such InsolaR and SolaR to get some numerical data for some numerical conclusions.</p>
<h1><span>Conclusion</span></h1>
<p>Given above insights, I believe Solar Business is in for a vast transformation.The road ahead won’t be without its challenges, but we must keep the long-term in mind. For the long run we can positively say Solar Energy is way to go. With further detailed analysis on more data we can definitely solidify some numerical conclusions for both financial and environmental gains.</p>
<p>Click here to see my <a rel="nofollow" href="https://shedares.shinyapps.io/SolarInstallation/" target="_blank">app</a> and <a rel="nofollow" href="https://github.com/she-dares/SolarInstalls" target="_blank">Github</a>.</p>
	<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/r/hottest-opportunities-and-trends-in-solar-business/"> 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/mmbRAPIp5eM" height="1"></a></div>