[R-sig-Geo] Problem with "image" function
lancelot
renaud.lancelot at cirad.fr
Sat Jul 23 09:45:39 CEST 2011
Update R to the latest patched version.
R
Le 22/07/2011 19:58, Cristina Silva a écrit :
> Dear list members,
>
> I have a SpatialGridDataFrame with sea depths. I have previously plotted
> this object using "image" with a grey scale. I have used exactly the
> same script and now the result is crossed by horizontal white lines.
>
> As the script used was based in chunk no. 91 of cm_mod.R (book ASDAR,
> figure 2.7), I repeated this script
>
>> oopar <- par(mar=c(1,1,1,1)+0.1)
>> grys <- grey.colors(8, 0.55, 0.95, 2.2)
>> image(auck_el1, "band1", col=grys)
>> plot(auck_gshhs, add=TRUE, pbg="white")
>> transect_sp <- SpatialPoints(coords=cbind(seq(174.458,175.3,0.000833333),
>> c(-37.03625)), proj4string=CRS("+proj=longlat +ellps=WGS84"))
>> plot(transect_sp, add=TRUE, pch="-", cex=2)
>> legend_image(c(174.2,174.25), c(-37.5,-37.2), auck_el1$band1,
>> vertical=TRUE,
>> offset.leg=0.8, col=grys)
>> par(oopar)
>
> and the result was also crossed by the same white horizontal lines.
>
> I am using R version 2.13.1. I didn't have any problems with previous
> versions.
>
> Thanks for your attention
>
> Cristina
>
--
Renaud Lancelot
EDENext Project, coordinator: http://www.edenext.eu/
CIRAD, UMR15, Campus International de Baillarguet TA A-DIR / B
F34398 Montpellier
Tel. +33 4 67 59 37 17 - Fax +33 4 67 59 37 95
Secr. +33 4 67 59 37 37 - Cell. +33 6 77 52 08 69
More information about the R-sig-Geo
mailing list