Blog Archives

Yet another R package primer

August 28, 2014
By
Yet another R package primer

Hadley Wickham is writing what will surely be a great book about the basics of R packages. And Hilary Parker wrote a very influential post on how to write an R package. So it seems like that topic is well covered. Nevertheless, I’d been thinking for some time that I should write another minimal tutorial […]

Read more »

Testing an R package’s interactive graphs

August 2, 2014
By
Testing an R package’s interactive graphs

I’ve been working on an R package, R/qtlcharts, with D3-based interactive graphs for quantitative trait locus mapping experiments. Testing the interactive charts it produces is a bit of a pain. It seems like I pretty much have to just open a series of examples in a web browser and tab through them manually, checking that […]

Read more »

UseR 2014, days 3-4

July 21, 2014
By
UseR 2014, days 3-4

Three weeks ago, I’d commented on the first two days of the UseR 2014 conference. I’m finally back to talk about the second half. Dirk Eddelbuettel on Rcpp Dirk Eddelbuettel gave a keynote on Rcpp [slides]. The goal of Rcpp is to have “the speed of C++ with the ease and clarity of R.” He […]

Read more »

Why hadn’t I written a function for that?

July 17, 2014
By
Why hadn’t I written a function for that?

I’m often typing the same bits of code over and over. Those bits of code really should be made into functions. For example, I’m still using base graphics. (ggplot2 is on my “to do” list, really!) Often some things will be drawn with a slight overlap of the border of the plotting region. And in […]

Read more »

2014 UseR conference, days 1-2

July 2, 2014
By
2014 UseR conference, days 1-2

I’m at UCLA for the UseR Conference. I attended once before, and I really enjoyed it. And I’m really enjoying this one. I’m learning a ton, and I find the talks very inspiring. In my comments below, I give short shrift to some speakers (largely by not having attended their talks), and I’m critical in […]

Read more »

hipsteR: re-educating people who learned R before it was cool

May 15, 2014
By
hipsteR: re-educating people who learned R before it was cool

This morning, I started a tutorial for folks whose knowledge of R is (like mine) stuck in 2001. Yesterday I started reading the Rcpp book, and on page 4 there’s an example using the R function replicate, which (a) I'd never heard before, and (b) is super useful. I mean, I often write code like […]

Read more »

Further points on crayon colors

May 9, 2014
By
Further points on crayon colors

I saw this great post on crayola crayon colors at the Learning R blog, reproducing a nice graph of the Crayola crayon colors over time. (Also see this even nicer version.) The Learning R post shows how to grab the crayon colors from the wikipedia page, “List of Crayola crayon colors,” directly in R. Here’s […]

Read more »

Two more points about crayon colors

May 8, 2014
By
Two more points about crayon colors

If you want to use crayon colors in R but you don’t want to rely on my R/broman package, you can just grab the code. Copy the relevant lines from the R/brocolors.R file: I spent a bit of time thinking about how best to sort the colors in a meaningful way, for the plot_crayons() function. […]

Read more »

Crayon colors in R

May 7, 2014
By
Crayon colors in R

Last night I was working on a talk on creating effective graphs. Mostly, I needed to update the colors, as there’d been some gaudy ones in its previous form (e.g., slide 22). I usually pick colors using the crayons in the Mac Color Picker. But that has just 40 crayons, and I wanted more choices. […]

Read more »

Reform academic statistics

May 1, 2014
By
Reform academic statistics

Terry Speed recently gave a talk on the role of statisticians in “Big Data” initiatives (see the video or just look at the slides). He points to the history of statisticians’ discussions of massive data sets (e.g., the Proceedings of a 1998 NRC workshop on Massive data sets) and how this history is being ignored […]

Read more »


Subscribe

Email:

  Subscribe