<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/shinyheatmaply-a-shiny-app-for-creating-interactive-cluster-heatmaps/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.r-statistics.com/2017/03/shinyheatmaply-a-shiny-app-for-creating-interactive-cluster-heatmaps/"> R – R-statistics blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a target="_blank" rel="nofollow" href="https://yonicd.github.io/shinyHeatmaply/"><img sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" alt="" class="wp-image-61469" src="https://i0.wp.com/www.r-statistics.com/wp-content/uploads/2017/03/shinyHeatmaply.png?resize=840%2C423" data-recalc-dims="1"></a></p>
<p>My friend <a target="_blank" rel="nofollow" href="https://github.com/yonicd">Jonathan Sidi</a> and I (<a target="_blank" rel="nofollow" href="https://github.com/talgalili/">Tal Galili</a>) are pleased to announce the release of <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=shinyHeatmaply">shinyHeatmaply</a> (0.1.0): a new Shiny application (and Shiny gadget) for creating interactive cluster heatmaps. shinyHeatmaply is based on the <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=heatmaply">heatmaply</a> R package which strives to make it easy as possible to create interactive cluster <a target="_blank" rel="nofollow" href="https://en.wikipedia.org/wiki/Heat_map">heatmaps</a>.</p>
<p>The app introduces a functionality that <a target="_blank" rel="nofollow" href="https://yonicd.github.io/shinyHeatmaply/">saves to disk</a> a self contained copy of the htmlwidget as an html file with your data and specifications you set from the UI, so it can be embedded in webpages, blogposts and online web appendices for academic publications.</p>
<p>You can see some of <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=shinyHeatmaply">shinyHeatmaply</a>‘s capabilities in the following 40 seconds video:</p>
<div><iframe height="503" width="450" allowfullscreen="true" src="https://www.youtube.com/embed/hANY_g1kB_A?version=3&rel=1&%23038;fs=1&%23038;autohide=2&%23038;showsearch=0&%23038;showinfo=1&%23038;iv_load_policy=1&%23038;wmode=transparent" type="text/html"></iframe></div>
<p> </p>
<h3>Installing shinyHeatmaply</h3>
<p>From <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=shinyHeatmaply">CRAN</a>:</p>
<div>
<table>
<tr>
<td>
<pre>install.packages<span>(</span><span>'shinyHeatmaply'</span><span>)</span></pre>
</td>
</tr>
</table>
</div>
<p>From <a target="_blank" rel="nofollow" href="https://github.com/yonicd/shinyHeatmaply/">github</a>:</p>
<div>
<table>
<tr>
<td>
<pre>devtools<span>::</span><span>install_github</span><span>(</span><span>'yonicd/shinyHeatmaply'</span><span>)</span></pre>
</td>
</tr>
</table>
</div>
<h3>Running the app/gadget</h3>
<p>The application has an import interface as part of the application which currently supports csv, txt, tab, xls, xlsx, rd, rda. You can start the app using:</p>
<div>
<table>
<tr>
<td>
<pre><span>library</span><span>(</span>shiny<span>)</span>
<span>library</span><span>(</span>heatmaply<span>)</span>
<span># If you didn't get shinyHeatmaply yet, you can run it through github:</span>
<span># runGitHub(&quot;yonicd/shinyHeatmaply&quot;,subdir = 'inst/shinyapp')</span>
<span># or just use your locally installed package:</span>
<span>library</span><span>(</span>shinyHeatmaply<span>)</span>
runApp<span>(</span><span>system.<span>file</span></span><span>(</span><span>&quot;shinyapp&quot;</span>, package <span>=</span> <span>&quot;shinyHeatmaply&quot;</span><span>)</span><span>)</span></pre>
</td>
</tr>
</table>
</div>
<p>The gadget is called from the R console and accepts input arguments. The object defined as the input to the shinyHeatmaply gadget is a data.frame or a list of data.frames. You can start it using the following code:</p>
<div>
<table>
<tr>
<td>
<pre><span>library</span><span>(</span>shinyHeatmaply<span>)</span>
 
<span>#single data.frame</span>
<span>data</span><span>(</span><span>mtcars</span><span>)</span>
launch_heatmaply<span>(</span><span>mtcars</span><span>)</span>
 
<span>#list</span>
<span>data</span><span>(</span><span>iris</span><span>)</span>
launch_heatmaply<span>(</span><span>list</span><span>(</span><span>'Example1'</span><span>=</span><span>mtcars</span>,<span>'Example2'</span><span>=</span><span>iris</span><span>)</span><span>)</span></pre>
</td>
</tr>
</table>
</div>
<p>You can see an example of <a target="_blank" rel="nofollow" href="https://yonicd.github.io/shinyHeatmaply/">a saved shinyHeatmaply output <strong>here</strong></a>. Or view the following iframe:</p>
<p><iframe height="1210" width="100%" src="https://yonicd.github.io/shinyHeatmaply/"></iframe></p>
<h3>We would love to get your feedback!</h3>
<p><strong>For <a target="_blank" rel="nofollow" href="https://github.com/yonicd/shinyHeatmaply/issues">issue reports</a> or feature requests, please visit the <a target="_blank" rel="nofollow" href="https://github.com/yonicd/shinyHeatmaply">GitHub repo</a>.</strong></p>
<p><strong>Post post credit:</strong> shinyHeatmaply was made thanks to the dedication of <a target="_blank" rel="nofollow" href="https://github.com/yonicd/">Jonathan Sidi</a>, and based on recent features added to heatmaply by <a target="_blank" rel="nofollow" href="https://github.com/Alanocallaghan">Alan O’Callaghan</a>. I am very grateful to them both. This could also not be made possible by the amazing work of the RStudio’s team on <a target="_blank" rel="nofollow" href="https://shiny.rstudio.com/gallery/">Shiny applications</a>, and of <a target="_blank" rel="nofollow" href="https://github.com/cpsievert">Carson Sievert</a> on <a target="_blank" rel="nofollow" href="https://github.com/ropensci/plotly/">plotly</a>. And lastly, to my adviser <a target="_blank" rel="nofollow" href="http://www.math.tau.ac.il/~ybenja/">Yoav Benjamini</a> for his support and advices.</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://www.r-statistics.com/2017/03/shinyheatmaply-a-shiny-app-for-creating-interactive-cluster-heatmaps/"> R – R-statistics 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 title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/W5i6M-gZZQo"></a></div>