Thanks

here is the traceback() etc

> levelplot(LessThanTfiCount,legend=T,maxpixels=100000,col=c("gray",colors))
Error in .local(x, stat, ...) : cannot use this function for large files
In addition: Warning message:
closing unused connection 3
(C:/Users/JNA/AppData/Local/Temp/R_raster_JNA/raster_tmp_2014-06-25_111615_9344_64510.gri)
> traceback()
7: stop("cannot use this function for large files")
6: .local(x, stat, ...)
5: cellStats(is.na(object), all)
4: cellStats(is.na(object), all)
3: .local(x, data, ...)
2: levelplot(LessThanTfiCount, legend = T, maxpixels = 1e+05, col =
c("gray",
       colors))
1: levelplot(LessThanTfiCount, legend = T, maxpixels = 1e+05, col =
c("gray",
       colors))

> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252
 LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.1252

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods
base

other attached packages:
[1] rasterVis_0.28      hexbin_1.26.3       latticeExtra_0.6-26
lattice_0.20-29     rgdal_0.8-16        RColorBrewer_1.0-5
[7] raster_2.2-31       sp_1.0-14

loaded via a namespace (and not attached):
[1] tools_3.1.0 zoo_1.7-11


On Tue, Jun 24, 2014 at 6:47 PM, Oscar Perpiñan <oscar.perpinan@upm.es>
wrote:

> Hi Nevil,
>
> I am almost sure that this error is signaled by cellStats, which is
> internally used in levelplot. If so, I can fix it easily.
> Could you please post the result of traceback() and sessionInfo()?
>
> Best,
>
> Oscar.
>
>
> -----------------------------------------------------------------
> Oscar Perpiñán Lamigueiro
> Dpto. Ingeniería Eléctrica (ETSIDI-UPM)
> Grupo de Sistemas Fotovoltaicos (IES-UPM)
> URL: http://oscarperpinan.github.io
> Twitter: @oscarperpinan
>
>
> 2014-06-24 5:32 GMT+02:00 nevil amos <nevil.amos@gmail.com>:
> > Is there a maximum raster size to plot using levelplot?
> >
> > I am getting the following error
> >
> >>
> levelplot(LessThanTfiCount,legend=T,maxpixels=100000,col=c("gray",colors))
> > Error in .local(x, stat, ...) : cannot use this function for large files
> >
> >
> >
> >> LessThanTfiCount
> > class       : RasterLayer
> > dimensions  : 22268, 32521, 724177628  (nrow, ncol, ncell)
> > resolution  : 25, 25  (x, y)
> > extent      : 2126750, 2939775, 2262225, 2818925  (xmin, xmax, ymin,
> ymax)
> > coord. ref. : +proj=lcc +lat_1=-36 +lat_2=-38 +lat_0=-37 +lon_0=145
> > +x_0=2500000 +y_0=2500000 +ellps=GRS80 +units=m +no_defs
> > data source :
> >
> C:\Users\JNA\AppData\Local\Temp\R_raster_JNA\raster_tmp_2014-06-24_094850_1800_86115.grd
> > names       : layer
> > values      : 0, 9  (min, max)
> >
> >         [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

