R

mustashe

A system for stashing and loading the results of long running computations.

'mustashe' Explained

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time the code chunk is run. This post explains how ‘mustashe’ works. See the previous post for an introduction to the package.

'mustashe'

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time the code chunk is run. ‘mustashe’ can be installed from CRAN or from GitHub. install.packages("mustashe") # install.packages("devtools") devtools::install_github("jhrcook/mustashe") Check out the next post the see how ‘mustashe’ works under-the-hood.

OncoTree Tidygraph

Introduction Cancers are often first classified by their tissue of origin, but there are several types of cancer for each tissue. Further, each of these can have several subdivisions. For example, head and neck cancers can be further divided into seven cancers, including head and neck squamous cell carcinoma (HNSC). HNSC itself has six subtypes, too. This hierarchy can be represented in a directed acyclic graph (DAG), as shown below.

Setting axes to integer values in 'ggplot2'

The problem I stumbled across this problem as a TA for an introductory R course. It was a minor question on a Problem Set focussed on creating a Shiny app that the instructor had seeminly dismissed as trivial and not bothered to include in his solution guide. Anyways, I needed to be able to grade the problem set, so I gave it a shot. Like any good programmer, I Googled the question and clicked on the most appealing Stack Overflow response.

Find the intersection of overlapping histograms in R

How to find the point where two histograms overlap.

ggasym ("gg-awesome")

'ggasym' (pronounced "gg-awesome") plots a symmetric matrix with three different fill aesthetics.