[R-sig-Geo] gdal color tables

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Sun Dec 23 15:25:58 CET 2012


On Sun, Dec 23, 2012 at 1:14 PM, Agustin Lobo <alobolistas at gmail.com> wrote:

>>  I'm not sure what you mean by an "R color table" - just a vector of colours?
> Form the help pages
> "A color palette, i.e. a vector of n contiguous colors generated by
> functions like rainbow, heat.colors, topo.colors, bpy.colors or one or
> your own making, perhaps using colorRampPalette"

 Okay, that is just a vector of colours.

>>  For output do you mean the XML snippet at the bottom of that page?
>> All of it, or just the <colortable> part?
> The colortable part.
> http://www.gdal.org/classGDALColorTable.html

 You mean you want to convert an R vector of colours to a C++ structure?

Barry



More information about the R-sig-Geo mailing list