[R-sig-Geo] importing raster with embedded colors

Michael Sumner mdsumner at gmail.com
Tue Aug 30 10:09:10 CEST 2016


Use brick() in place of raster() and plotRGB().

Cheers, Mike

On Tue, Aug 30, 2016, 17:30 Pascal Title <ptitle at umich.edu> wrote:

> Hi all,
>
> I've downloaded a shaded relief map from www.naturalearthdata.com (link to
> specific raster:
>
> http://www.naturalearthdata.com/downloads/50m-cross-blend-hypso/50m-cross-blended-hypso-with-shaded-relief-and-water/
> ).
> This website provides rasters with built-in color schemes that look really
> good. But I don't see how to import these colors into R with the raster. If
> I read in the raster and plot, I get the default terrain color scheme.
> If I load this .tif in QGIS, the color scheme is automatically loaded along
> with it.
>
> Is it possible to use the color scheme in R?
>
> thanks!
> -Pascal
>
> --
> Pascal Title
> PhD candidate | Rabosky Lab <http://www.raboskylab.org/>
> Dept of Ecology and Evolutionary Biology
> University of Michigan
> ptitle at umich.edu
>
> pascaltitle.weebly.com
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
-- 
Dr. Michael Sumner
Software and Database Engineer
Australian Antarctic Division
203 Channel Highway
Kingston Tasmania 7050 Australia

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list