qgis_colormap: Calculate Quantum GIS format color map file

Description Usage Arguments Examples

View source: R/chg_traj.R

Description

This function will format a lookup table (lut) into a QGIS color map suitable for import into Quantum GIS (QGIS) for color coding a raster file using the "singleband pseudocolor" band rendering option.

Usage

1
qgis_colormap(x, out_file, color_codes, minlength = 5)

Arguments

x

a lookup table as output by traj_lut

out_file

filename for the output file

color_codes

an (optional) list of colors to use in the color table. Should have the same length as the number of rows in x.

minlength

number of characters used to abbreviate t0_name and t1_name columns when building transition names (only used it t0_name and t1_name are present in x)

Examples

1
lut <- traj_lut(c(1, 2), c("NonForest", "Forest"))

azvoleff/teamlucc documentation built on June 4, 2017, 12:08 a.m.