Thank you very much Oscar. it works.

Manuel


2013/7/22 Oscar Perpiñán Lamigueiro <oscar.perpinan@gmail.com>

> Hello,
>
> Use na.value='transparent' inside scale_fill_gradient:
>
> theme_set(theme_bw())
> gplot(s) + geom_tile(aes(fill = value)) +
>   facet_wrap(~ variable) +
>   scale_fill_gradient(low = "white", high = "blue",
> na.value='transparent') +
>   coord_equal()
>
> Best,
>
> Oscar
>
> Manuel Spínola <mspinola10@gmail.com> writes:
>
> > Dear list members,
> >
> > How can I remove the grey area that appear when using gplot from
> rasterVis
> >
> > Here is the reproducible example that come from the example of gplot:
> >
> > r <- raster(system.file("external/test.grd", package="raster"))
> > s <- stack(r, r*2)
> > names(s) <- c("meuse", "meuse x 2")
> >
> > theme_set(theme_bw())
> > gplot(s) + geom_tile(aes(fill = value)) +
> >   facet_wrap(~ variable) +
> >   scale_fill_gradient(low = "white", high = "blue") +
> >   coord_equal()
> >
> >
> > Best,
> >
> > Manuel
>
>
> --
> Oscar Perpiñán Lamigueiro
> Grupo de Sistemas Fotovoltaicos (IES-UPM)
> Dpto. Ingeniería Eléctrica (EUITI-UPM)
> URL: http://procomun.wordpress.com
> Twitter: @oscarperpinan
> LinkedIn: http://www.linkedin.com/in/oscarperpinan
>



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
mspinola10@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

