Skip to content

plotting big zoo object memory problem

2 messages · stephen sefick, Gabor Grothendieck

#
the comma seperated file is 37Mb, and I get the below message:
it is zoo object read in this way:

# chron
+    chron(sub(" .*", "", x), gsub(".* (.*)", "\\1:00", x))
+ }
and then the plot is done with:
and the resulting warning message:

Warning messages:
1: In attr(x, "index") <- attr(x, "oclass") <- attr(x, "frequency") <- NULL :
  Reached total allocation of 502Mb: see help(memory.size)
2: In attr(x, "index") <- attr(x, "oclass") <- attr(x, "frequency") <- NULL :
  Reached total allocation of 502Mb: see help(memory.size)

it still plots the file.  I am currently limited to my computer at
work with only 504Mb of RAM (windows), and my computer at home with
1Gb of RAM (Macintosh).  But I will probably be using my work computer
for a lot of analysis on this data set (and it will become marginally
larger).  Will this be a problem?  I am a biologist not a computer
scientist.
thanks for the help
#
You could try plotting it in pieces to use less RAM.

library(zoo)
library(chron)
z <- zoo(1:10, chron(1:10))

# same as plot(z)
plot(z[1:5], ylim = range(z), xlim = range(time(z)))
lines(z[5:10])
On Wed, Mar 5, 2008 at 10:00 AM, stephen sefick <ssefick at gmail.com> wrote: