2

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?

Community
  • 1
  • 1
Nonancourt
  • 559
  • 2
  • 10
  • 21
  • Does it persist if you restart your R-session/Rstudio/your computer? – Heroka Jan 21 '16 at 15:21
  • 5
    what is this `data <- [109 89 4405 ... ]`? are you really using R? – rawr Jan 21 '16 at 15:24
  • @rawr sorry, it should read: data <- c(109,89,...). I'm editing it now... – Nonancourt Jan 21 '16 at 15:51
  • @Heroka if I restart the session, I get back to the original settings, so I can plot again. It seems what I was running previously messed with the settings. In fact, I was doing a histogram with hist, but getting the error: Error in plot.new() : figure margins too large – Nonancourt Jan 21 '16 at 16:07
  • @user1651933 http://stackoverflow.com/questions/4410390/error-in-plot-new-figure-margins-too-large – rawr Jan 21 '16 at 16:10

0 Answers0