Articles by Matt Leonawicz

Introducing tabr: guitar tabs with R

March 20, 2018 | Matt Leonawicz

This post introduces a new R package I am working on called tabr for creating guitar tablature (“tabs”) from R code. The tabr package provides programmatic music notation and a wrapper around LilyPond for creating quality guitar tablature. [Click here for original post] (in process of switching where I post ...
[Read more...]

Make memorable plots with memery. v0.3.0 now on CRAN.

November 13, 2017 | Matt Leonawicz

Make memorable plots with memery. memery is an R package that generates internet memes including superimposed inset graphs and other atypical features, combining the visual impact of an attention-grabbing meme with graphic results of data analysis. Version 0.3.0 of memery is now on CRAN. The latest development version and a package ... [Read more...]

Custom images for Shiny dashboard valueBox icons

January 11, 2017 | Matt Leonawicz

The shinydashboard package provides functions like valueBox that conveniently display basic information like summary statistics. In addition to presenting a value and subtitle on a colored background, an icon may be included as well. However, the icon must come from either the Font Awesome or Glyphicon icon libraries and cannot ...
[Read more...]

mapmate 0.2.0

November 15, 2016 | Matt Leonawicz

mapmate has now been updating from version 0.1.0 to 0.2.0 on Github. The key change is the incorporation of new functions, help docs and code examples focused on network maps, which is a more complex map type not previously covered. The new tutorial content below provides a a couple basic code examples ... [Read more...]

mapmate 0.1.0

November 1, 2016 | Matt Leonawicz

mapmate has now been updating from version 0.0.2 to 0.1.0 on Github. The biggest addition is a number of plotting options for making different kinds of maps. The new tutorial content below provides a number of code examples for making a variety of maps and also highlights current limitations associated with certain ...
[Read more...]

mapmate 0.0.2

October 26, 2016 | Matt Leonawicz

mapmate is an R package for map- and globe-based data animation pre-production. Specifically, mapmate functions are used to generate and save to disk a series of global map graphics that make up a still image sequence, which can then be used in video editing and rendering software of the user’... [Read more...]

R Shiny leaflet: using observers

March 16, 2016 | Matt Leonawicz

Using leaflet in R is fairly simple and there are plenty of online resources and examples available already. See the RStudio tutorial to get started if you haven’t already. This post presents a series of examples which build upon each other. The code displays both point data and raster ...
[Read more...]

R + htmlwidgets + DT + sparkline

October 1, 2015 | Matt Leonawicz

Here are some examples with code where I use the R packages DT and sparkline to produce interactive data tables and inline graphs as well as inline graphs within data table cells. Both packages utilize the htmlwidgets package to interface with javascript libraries. With htmlwidgets you can create custom widgets ... [Read more...]

R animation: great circles 3, final draft

September 4, 2015 | Matt Leonawicz

Here is the final draft of my great circle arcs R animation. I made this back in January shortly after my first two drafts, but am only now getting around to sharing it, which is a typical representation of how seldom I can make time for blogging. But given the ...
[Read more...]

Lightning strike trend prediction with GBM in R

August 28, 2015 | Matt Leonawicz

Lightning activity is projected to increase with climate change. Lightning activity is interesting to model with stochastic gradient boosting (GBM: generalized boosted regression models/gradient boosting machine) in R. One use I have for this at SNAP is in the context of landscape fire modeling with SNAP’s ALFRESCO model. ...
[Read more...]

Animated great circles 2: smoother lines

April 16, 2015 | Matt Leonawicz

Here is draft two of my great circle arcs R animation. This time I focused on improving the smoothness of the lines and removing some buggy line behavior, keeping it on a flat map for now. As with DRAFT 1, the YouTube video is of significantly reduced quality, to the point ... [Read more...]

Animated paths in R: toy example

April 14, 2015 | Matt Leonawicz

Recently I have shared examples of animations made using R which feature traversal of pathways, specifically grid cell borders and great circle arcs. Here I provide the basic code required to generate a path sequence from a path. The fundamental ideas are as follows: Pathways are represented by lines. Lines ...
[Read more...]

Updated climate projections by cities

April 2, 2015 | Matt Leonawicz

[Alpha] and [beta] versions of a simple R Shiny web application showing projected climate trends for various Alaska and western Canada communities is available. [The alpha and beta versions are currently nonfunctional. But you can skip to the final version here. Some of the text below only pertains to the ...
[Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)