A field guide for working with data in R and D3