create_qml: create_qml

Description Usage Arguments Examples

Description

Creates a qml-file of a given classification scheme produced by classAccuracy for visualization of the respective prediction map in QGIS.

Usage

1
2
3
4
create_qml(x, ...)

## S3 method for class 'classaccur'
create_qml(x, out.file, pallete.name = "YlOrRd", ...)

Arguments

x

object of class 'classaccur' containing an evaluated classification scheme.

...

additional arguments, so far ignored.

out.file

destination-folder were the qml-file should be stored

pallete.name

code of color-palette to be used for visualization (see display.brewer.all). For an overview type display.brewer.all() into prompt. Defaults to "YlOrRd".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## -- create qml-file based on 'classaccur'-object:

# 1) get optimal classification scheme:

hsm<- HSMclass(refdata.gr, predictions.gr, nclasses = 6,
              iterations = 1000, coolfactor=0.99, InitTemp = 80,
              weight.norefs = 2, weight.classwidth = 2)

# 2) evaluate classification scheme:
acc.opti<- classAccuracy(refdata.gr, predictions.gr, def.int = hsm$best.classbreaks)

# 3) write qml-file for classification scheme:
## Not run: 
create_qml(acc.opti, out.file = "opti_class.qml", pallete.name = "YlOrRd")

## End(Not run)

AndreasChristianHill/classoptimr documentation built on May 29, 2019, 12:23 p.m.