Aviral Goel

Posts tagged with ‘R’ (3)

ggplot2 Theme

I use ggplot2 nowadays for all my graphing requirements because my research is on improving R and alternatives such as matplotlib are abysmal. This article is a collection of theme settings I have found useful, especially for generating figures for my recent publication on R. For generating colorless background figures, I use the following theme setting. old_theme <- theme_set(theme_bw() + theme(text = element_text(size = 15), panel.border = element_blank())) This is how the figures look like before and after updating the theme.

On the Design, Implementation, and Use of Laziness in R

The R programming language has been lazy for over twenty-five years. This paper presents a review of the design and implementation of call-by-need in R, and a data-driven study of how generations of programmers have put laziness to use in their code. We analyze 16,707 packages and observe the creation of 270.9 B promises. Our data suggests that there is little supporting evidence to assert that programmers use laziness to avoid unnecessary computation or to operate over infinite data structures.