If this is your own system, do you know how much RAM you have ?
what operating system do you use ?
are you multitasking so that other heavyweight applications are taking up significant RAM space ?
Put your cursor on the divider between the main coding area and the plot display area---it should change to a hand image. Pull, in my case to the left, and the plot display area should increase and the coding area decrease.
could you offer a guess as to why adjust the plot display avoids an apparent out of memory when creating vector issue ? its cool that you had the solution but just wondering ... why ?!
I have not the faintest idea. I stumbled on it by accident a few months ago when I got the error message and on checking found that if I ran R from the command line, plotting worked fine.
how much RAM is available to your system?
I would use
library(pryr)
mem_used()
to see how much memory is in use by R at the point where you run out of memory.
pryr::object_size() can tell you the memory used up by any R object in your session.
If you have big objects you no longer need then release them by setting them to null or rm() removing them
It looks like nirgrahamuk's questions about memory makes sense or perhaps have a look at ?"Memory-limits"
Is your data set publicly available or could you post a dput() format sample of the data here? Without knowing the format of the data it is difficult to make suggestions.