This example is inspired by the examples of the treemap package. You’ll learn how to convert a data.frame to a data.tree structure navigate a tree and locate specific nodes use Aggregate and Cumulate manipulate an existing tree, e.g. by using the Prune method use data.tree in connection with the treemap package This code builds on version
by Michael Helbraun The software business includes travel, and that means hotels. The news that Marriott was acquiring Starwood was of particular interest to me – especially since more than 75% of my 95 nights so far this year on the road have been spent with one of those two companies. While other folks can evaluate if the deal...
Linear mixed models (LMMs) have become widely used for dealing with population structure in human GWAS, and they’re becoming increasing important for QTL mapping in model organisms, particularly for the analysis of advanced intercross lines (AIL), which often exhibit variation in the relationships among individuals. In my efforts on R/qtl2, a reimplementation R/qtl to better
Last month I ran my first webinar (“Make a Census Explorer with Shiny”). About 100 people showed up, and feedback from the participants was great. I also had a lot of fun myself. Because of this, I’ve decided to do one more webinar before my free trial with the webinar service ends. Here are the
Next Tuesday I will be giving a talk at EARL 2015 in Boston. The title of my talk is “Mapping Census Data in R”. You can see my slides here: If you will be attending the conference then I hope to see you there!
The post Slides For My Upcoming Talk: “Mapping Census Data in R”...
I was working on making a map in R recently and after an extensive search online, I found a hundred different ways to do it and yet each way didn't work quite right for my data and what I wanted to do. Eventually, I found a way to make it work after p...
Last week I released an update to choroplethr that lets you combine choropleth maps with reference maps. Since that post many people have asked if it’s possible to change the reference map that choroplethr uses. The answer is yes, but it requires some code. Here is the same choropleth (New York City ZIP Code Income) with three
I saw this post over at NatGeo over the weekend and felt compelled to replicate this: with ggplot2. Three shapefiles later and we have it close enough to toss into a post (and I really don’t believe the continent names are necessary). library(rgdal) library(ggplot2) library(ggthemes) # grab these from http://rud.is/dl/quakefile.tgz world <- readOGR("countries.geo.json",
This is the second « big » feature coming with branch 0.2 of rleafmap (now on CRAN!). With this new version you can write popups content in R Markdown which will be processed when you generate the map. This can be useful … Lire la suite →