<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/rcppeigen-0-3-3-3-0/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2017/05/05#rcppeigen_0.3.3.3.0"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>A new <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=RcppEigen">RcppEigen</a> release 0.3.3.3.0 was put into <a target="_blank" rel="nofollow" href="https://cran.r-project.org/">CRAN</a> (and <a target="_blank" rel="nofollow" href="https://www.debian.org/">Debian</a>) a few days ago. It brings <a target="_blank" rel="nofollow" href="http://eigen.tuxfamily.org/">Eigen</a> 3.3.* to R.</p>
<p>Once again, <a target="_blank" rel="nofollow" href="http://statr.me/">Yixuan Qiu</a> did most of the heavy lifting over a multi-month period as some adjustments needed to be made in the package itself, along with coordination downstream.</p>
<p>The complete <code>NEWS</code> file entry follows.</p>
<h3>Changes in RcppEigen version 0.3.3.3.0 (2017-04-29)</h3>
<ul>
<li>
<p>Updated to version 3.3.3 of Eigen</p>
</li>
<li>
<p>Fixed incorrect function names in the examples, thanks to Ching-Chuan Chen</p>
</li>
<li>
<p>The class <code>MappedSparseMatrix</code></ul>
<p>Part of the reason why we have been somewhat silent at Citizen Statistician is that it’s DataFest season, and that means a few weeks (months?) of all consuming organization followed by a weekend of super fun data immersion and exhaustion… Each year that I organize DataFest I tell myself <em>“next year, I’ll do [blah] to make my life easier”</em>. This year I finally did it! Read about how I’ve been streamlining the process of registrations, registration confirmations, and dissemination of information prior to the event on my post titled <a target="_blank" rel="nofollow" href="https://rviews.rstudio.com/2017/04/05/datafestorg/"><em>“Organizing DataFest the tidy way”</em></a> on the <a target="_blank" rel="nofollow" href="https://rviews.rstudio.com/">R Views blog</a>.</p>
<p>Stay tuned for an update on ASA DataFest 2017 once <a target="_blank" rel="nofollow" href="http://ww2.amstat.org/education/datafest/participants.cfm">all 31 DataFests around the globe</a> have concluded!</p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/y7cZwgBNXZY">
<p><img alt="Delaporte PMF" src="https://i0.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/6/63/DelaportePMF.svg/294px-DelaportePMF.svg.png?w=456&ssl=1" data-recalc-dims="1">Finally, finally after months of pulling out my hair, the <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=Delaporte">Delaporte</a> project on CRAN passes all of its <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/checks/check_results_Delaporte.html">checks</a> on Solaris SPARC. The last time it did that, it was still using serial C++. Now it uses OpenMP-based parallel Fortran 2003. What a relief! One of these days I should write up what I did and why, but for now, I’ll be glad to put the project down for a month or seventeen!</p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/e9z282zRwhQ">
<p>My family and I love boardgames.  We are also on the lookout for new ones that would fit with the ones we already like to play.  So I decided to create a boardgame recommendation website</p>
<p><a target="_blank" rel="nofollow" href="https://larrydag.shinyapps.io/boardgame_reco/">https://larrydag.shinyapps.io/boardgame_reco/</a></p>
<p>I built it using R.  The recommendation engine uses a very simple collaborative filtering algortihm based on correlation scores from other boardgame players collection lists.  The collections are gathered using the API from <a target="_blank" rel="nofollow" href="http://boardgamegeek.com/">BoardgameGeek.com</a>.  It is very much in a beta project phase as I just wanted to get something built to get working. </p>
<p>I also wanted another project to build in <a target="_blank" rel="nofollow" href="http://shiny.rstudio.com/">Shiny</a>.  I really like how easy it is to publish R projects with Shiny. </p>
<p>Some of the features include:</p>
<ul>
<li>Ability to enter your own collection</li>
<li>Get recommendation on your collection</li>
<li>Amazon link to buy boardgame that is recommended</li>
</ul>
<div>Its a work in progress.  There is much to clean up and to make more presentable.  Please take a look and offer comments to help improve the website. </div>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/yDLMYMxmADY">
<p></p>
<p>I’m happy to announce my first R package, called <code>brotools</code>. This is a package that contains functions that are specific to my needs but that you might find also useful. I blogged about some of these functions, so if you follow my blog you might already be familiar with some of them. It is not on CRAN and might very well never be. The code is hosted on <a target="_blank" rel="nofollow" href="https://bitbucket.org/b-rodrigues/brotools">bitbucket</a> and you can install the package with</p>
<pre><code>devtools::install_bitbucket(&quot;b-rodrigues/brotools&quot;)</code></pre>
<p>Hope you’ll find the <code>brotools</code> useful!</p>
<p></p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/HCqIkJ-PtFo">
<p>I found recently, that in addition to a great list of cheatsheets designed by RStudio, one can also download a template for new cheatsheets from <a target="_blank" rel="nofollow" href="https://www.rstudio.com/resources/cheatsheets/">RStudio Cheat Sheets</a> webpage.<br>
With this template you can design your own cheatsheet, and submit it to the collection of <a target="_blank" rel="nofollow" href="https://www.rstudio.com/resources/cheatsheets/">Contributed Cheatsheets</a> (Garrett Grolemund will help to improve the submission if needed).</p>
<p>Working on a new cheatsheet is pretty enjoying. You need to squeeze selected important stuff into a quite small surface like one or two pages.<br>
Lots of fun.<br>
I did it for <strong><a target="_blank" rel="nofollow" href="https://github.com/rOpenGov/eurostat">eurostat</a></strong> and <strong><a target="_blank" rel="nofollow" href="https://github.com/kassambara/survminer">survminer</a></strong> packages (cheatsheets below).<br>
And would love to see one for <strong>caret</strong>. </p>
<p><center><a target="_blank" rel="nofollow" href="https://github.com/rstudio/cheatsheets/raw/master/source/pdfs/eurostat_cheatsheet.pdf"><img src="https://i2.wp.com/smarterpoland.pl/wp-content/uploads/2017/03/Screen-Shot-2017-03-17-at-19.37.11-1024x790.png?w=450" data-recalc-dims="1"></a></center></p>
<p><center><a target="_blank" rel="nofollow" href="https://github.com/rstudio/cheatsheets/raw/master/source/pdfs/survminer_cheatsheet.pdf"><img class="wp-image-7976" src="https://i1.wp.com/smarterpoland.pl/wp-content/uploads/2017/03/Screen-Shot-2017-03-17-at-19.36.48-1024x792.png?w=450" data-recalc-dims="1"></a></center></p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/7q3ujja1_XQ">
<p>Carson Sievert, the lead developer of the <a target="_blank" rel="nofollow" href="https://github.com/ropensci/plotly">Plotly package</a> for R will be hosting a workshop at <a target="_blank" rel="nofollow" href="http://plotcon%202017/">https://plotcon.plot.ly/</a>. Here’s an outline of the material he will be covering during the workshop. </p>
<p>More details <a target="_blank" rel="nofollow" href="https://github.com/cpsievert/plotcon17">here</a>. The workshop will be based on Carson’s <a target="_blank" rel="nofollow" href="https://cpsievert.github.io/plotly_book/">Plotly for R book</a>. </p>

<table>
<tr>
<th>Broad Topic</th>
<th>Details</th>
</tr>
<tr>
<td>A tale of 2 interfaces</td>
<td>Converting ggplot2 via <code>ggplotly()</code>Directly interfacing to plotly.js with <code>plot_ly()</code><br>Augmenting <code>ggplotly()</code> via <code>layout()</code> and friends<br>Accessing and leveraging ggplot2 internals<br>Accessing any plot spec via <code>plotly_json()</code></td>
</tr>
<tr>
<td>The <code>plot_ly()</code> cookbook</td>
<td>Scatter traces<br>Maps<br>Bars &amp; histograms<br>Boxplots<br>2D frequencies<br>3D plots</td>
</tr>
<tr>
<td>Arranging multiple views</td>
<td>Arranging htmlwidget objects<br>Merging plotly objects into a subplot<br>Navigating many views</td>
</tr>
<tr>
<td>Multiple linked views</td>
<td>Linking views with shiny<br>Linking views without shiny<br>Linking views “without shiny, inside shiny”</td>
</tr>
<tr>
<td>Animating views</td>
<td>Key frame animations<br>Linking animated views</td>
</tr>
<tr>
<td>Advanced topics</td>
<td>Adding custom behavior with the <a target="_blank" rel="nofollow" href="https://plot.ly/javascript/plotlyjs-function-reference/">plotly.js API</a> and <code>htmlwidgets::onRender()</code><br>Translating ggplot2 geoms to plotly</td>
</tr>
</table>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/c8LNzdoqJ0c">
<p>One of the <a target="_blank" rel="nofollow" href="https://statbandit.wordpress.com/2014/04/01/kaplan-meier-plots-using-ggplots2-updated/">most popular posts</a> on this blog has been my attempt to create Kaplan-Meier plots with an aligned table of persons-at-risk below it under the ggplot paradigm. That post was last updated 3 years ago. In the interim, Chris Dardis has built upon these attempts to create a much more stable and feature-rich version of this function in his package <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/survMisc/">survMisc</a>; the function is called <a target="_blank" rel="nofollow" href="https://www.rdocumentation.org/packages/survMisc/versions/0.5.4/topics/autoplotTableAndPlot">autoplot</a>.</p>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statbandit.wordpress.com/576/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/statbandit.wordpress.com/576/" border="0"></a> <img alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" border="0" data-recalc-dims="1"></p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/9LE7nqol6H4">
<p>I’m pleased to announce the inaugural release of my <code>hrbrthemes</code> (0.1.0) package <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=hrbrthemes">on CRAN</a></p>
<p>The primary goal of said package is to provide opinionated typographical and other aesthetic defaults for ggplot2 charts.</p>
<p>Two core themes are included:</p>
<ul>
<li><code>theme_ipsum()</code> – an <a target="_blank" rel="nofollow" href="https://www.microsoft.com/typography/fonts/family.aspx?FID=22">Arial Narrow</a>-based theme</li>
<li><code>theme_ipsum_rc()</code> – a <a target="_blank" rel="nofollow" href="https://fonts.google.com/specimen/Roboto+Condensed">Roboto Condensed</a>-based theme.</li>
</ul>
<p>The Roboto Condensed Google Font comes with the package along with an installer for said font (it’s an R installer, you still need to install it on your OS manually).</p>
<p>Other niceties include:</p>
<ul>
<li><code>scale_[xy]_comma()</code> — shortcut for <code>expand=c(0,0), labels=scales::comma</code></li>
<li><code>scale_[xy]_percent()</code> — shortcut for <code>expand=c(0,0), labels=scales::percent</code></li>
<li><code>scale_[color|fill]_ipsum()</code> — discrete scale with 9 colors</li>
<li><code>gg_check()</code> — pass-through spell checker for ggplot2 label elements</li>
</ul>
<p>Source version is tracked <a target="_blank" rel="nofollow" href="https://github.com/hrbrmstr/hrbrthemes">on GitHub</a>.</p>
<p>Critiques, bug reports and enhancement requests are most welcome as GitHub issues.</p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/M6zqEZWuP8w">