Description Usage Arguments Examples
Creates a qml-file of a given classification scheme produced by classAccuracy
for visualization of the respective prediction map in QGIS.
1 2 3 4 | create_qml(x, ...)
## S3 method for class 'classaccur'
create_qml(x, out.file, pallete.name = "YlOrRd", ...)
|
x |
object of class |
... |
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.