Description Usage Arguments Author(s) See Also Examples
This function takes an object of class CompareClassification
as input and plots a map of the class agreement of two classifications.
1 2 3 4 5 6 7 8 9 |
x |
Object of class |
xlab |
A title for the |
ylab |
A title for the y axis |
main |
A title for the plot |
names |
a list with |
ul |
starting color in the upper left corner of the |
lr |
ending color in the lower right corner of the |
ll |
starting color in the lower left corner of the |
ur |
ending color in the upper right corner of the |
ctr |
color in the center of the |
mar |
plot margins |
... |
Further arguments that can be passed |
Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]
CompareClassification
, AccuracyAssessment
, TrendClassification
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # # calculate trends with two different methods
# AATmap <- TrendRaster(ndvimap, start=c(1982, 1), freq=12, method="AAT", breaks=0)
# plot(AATmap)
# STMmap <- TrendRaster(ndvimap, start=c(1982, 1), freq=12, method="STM", breaks=0)
# plot(STMmap)
#
# # classify the trend estimates from the two methods into
# # positive, negative and no trend
# AATmap.cl <- TrendClassification(AATmap)
# plot(AATmap.cl, col=brgr.colors(3))
# STMmap.cl <- TrendClassification(STMmap)
# plot(STMmap.cl, col=brgr.colors(3))
#
# # compare the two classifications
# compare <- CompareClassification(x=AATmap.cl, y=STMmap.cl,
# names=list('AAT'=c("Br", "No", "Gr"), 'STM'=c("Br", "No", "Gr")))
# compare
#
# # plot the comparison
# plot(compare)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.