In RStudio, I must have changed some setting regarding the display of a plot in the Plots box (perhaps using dev.off()). Anyway, as a result, I cannot display plots any more, even by logging out. Examples:
x <- c(1:5)
y <- x
plot(x,y)
Result: no plot shown.
data <- c(109, 89, 4405, 574, 1663, 287, 271, 1786, 749, 2366)
hist(data,plot=TRUE)
No histogram displayed.
I know this seems like the most stupid question in the world, but it seems extremely difficult to find an answer. For example, here they ask about restoring the graphics plot, but the solution only works if one had stored the original parameters. Here, instead, they suggest to do dev.off(), but that actually doesn't work for me.
Any idea?