I have no idea why, but I am pretty sure that the following produced the plot some time ago. Can you tell me what's wrong here?
library(ggplot2)
qplot(c(0, 2), stat="function", fun=exp, geom="line")
This returns "Error in c (0, 2): unused argument (2)". Why?
Edit: This is a common problem:
a <- c(0, 2)
gives the same error. What's going on here?
source
share