ggplot2 error “invalid argument to unary operator”
Monday, August 8th, 2011I had a longish ggplot command and kept getting the error: invalid argument to unary operator It happened when I was specifying custom labels with scale_y_continuous but it turns out this was irrelevant and it hinged on a line break. It turnsout (at least when stepping through the code with ESS in Emacs using C-c [...]