Byman,
I think this happens because all values in
pr_a2_20c3m_1_cgcm3.1_t47_1961_2000.nc are NA.
Robert


On Tue, Dec 13, 2011 at 3:52 PM, Byman <bymanh@gmail.com> wrote:

>  *I am sorry if this has been answered before but I searched  and found
> no solution
> *
>
> *I have a problem plotting maps using the raster package on ** my own
> desktop and laptop.  When I read  a small file(1 MB), I can plot  perfectly
> but once the file gets bigger (4 MB), all I get when plotted is an empty
> box and coordinates. I have tried with brick, raster and stack  and the
> result is the same. Has this to do with memory? or R, or rsater package? I
> searched on internet and I search one thread but no solution is given (
> http://tolstoy.newcastle.edu.au/R/e15/help/11/09/8050.html). (I have also
> tried levelplot and the result is the same). I needed to see the result.
> For the example below I used the attached files.
> *
>
> *#This works (<1 MB)
> *
>
> *tas<-brick("C:/data/delta2020_CCSM3_A1B_tas.nc")
> plot(tas,1) # plots perfectly
> *
>
> *#this does not work (4 MB)*
>
> *pr<-brick("C:/data/pr_a2_20c3m_1_cgcm3.1_t47_1961_2000.nc")
>   plot(pr,1) #empty plot box
> *
>
> *my sessionInfo()  yields this: *
> **
>
> *  R version 2.14.0 (2011-10-31)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=English_Zimbabwe.1252  LC_CTYPE=English_Zimbabwe.1252
> [3] LC_MONETARY=English_Zimbabwe.1252 LC_NUMERIC=C
> [5] LC_TIME=English_Zimbabwe.1252
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
> [8] base
>
> other attached packages:
> [1] rasterVis_0.10-7    hexbin_1.26.0       latticeExtra_0.6-20
> [4] RColorBrewer_1.0-5  lattice_0.20-3      raster_1.9-54
> [7] sp_0.9-92
>
> loaded via a namespace (and not attached):
> [1] zoo_1.7-7
> *
>
> *
> Please assist if you know the problem and the solution
> *
>
> *Thank you in advance
> *
>
> *Byman
> *
>
> *
> *
>
> *
> *
> ****
>

	[[alternative HTML version deleted]]

