ABSTRACT

This chapter presents a few tips, functions, tutorials, and inspiring R-based journalism examples. datapasta package makes it easy to copy data into your clipboard and then generate R code to create a vector or data frame from that information. The RStudio addin Bare Combine lets a user to select a string of comma-separated characters such as New York, Boston, Chicago and turn them into a properly quoted R vector c(“New York”, “Boston”, “Chicago”). In one of the most meta packages ever, Dean Attali created an addins package that is itself an addin, allowing the user to browse lots of available addins that the user might want to install. echarts4r is an R wrapper around the powerful and flexible echarts JavaScript library with which creating basic graphs and tooltips is easy, although generating a scatter plot with a tooltip that includes more than two data points takes a little more code than taucharts.