[R] too many open devices

harold kincaid kincaidharold592 at gmail.com
Sun Mar 11 16:41:52 CET 2012


Many thanks for your answer. I am using someone else's code that has
worked fine for some time and don't know much about R graphics.
Windows are being opened, the clutter is definitely there, and it
looks like dev.off is not being used. So at least it probably is not a
stupid attack on my part. So your response was helpful. Thanks for
taking the time to respond. Harold

On Sun, Mar 11, 2012 at 1:39 AM, Patrick Connolly
<p_connolly at slingshot.co.nz> wrote:
> On Sat, 10-Mar-2012 at 02:21PM -0600, harold kincaid wrote:
>
> |> I am getting "too many open devices" after 60 graphs. The archived
> |> comments on this problem were too sketchy to be helpful. Any ideas?
>
> With minimal information, my guess might not be correct, but I suspect
> you're plotting to a Windows device and a new one is opened for each
> of your plots.  That would be some clutter on your screen.
>
> You'd make life simpler if you used a pdf device that uses a new page
> for each of your plots which can be hundreds of pages if you like.
>
> Check out the help for pdf(), making sure you don't forget the
> dev.off() part.
>
>
> HTH
> --
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>   ___    Patrick Connolly
>  {~._.~}                   Great minds discuss ideas
>  _( Y )_                 Average minds discuss events
> (:_~*~_:)                  Small minds discuss people
>  (_)-(_)                              ..... Eleanor Roosevelt
>
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.



More information about the R-help mailing list