I tried the following simple code in R
The plot doesn't show up. If I add ggsave, the plot is saved, so I know the plot is being produced. It just doesn't show up in a plot window.Code:library("ggplot2") a = c(1,2,3,4) b = 2*a ggplot() + geom_line(aes(x=a,y=b))
I asked another friend to try out the code on his machine (also Ubuntu), and it worked. So I think its a problem with my R installation. Any ideas what's wrong?