lpplot: Plotting posterior probabilities for multigroup...

Usage Arguments Examples

Usage

1
lpplot(probabilities, class, combination=NA)

Arguments

probabilities

A matrix of posterior probabilities from a classification result. Not nessesarily from local projection based discrimination.

class

A factor variable classifying the observations. Either the ground truth or the classification result.

combination

A vector of length two or not provided at all. If provided, the plot will be reduced to the visualization of the separation of the indicated groups. If not provided, all possible combinations will be visualized in form of a matrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(lop)

x <- rrcovHD::olitos
data <- x[,1:25]
cl <- as.factor( x[,26] )
ld <- localDiscrimination(data, cl, k=7)
p0 <- predict(ld, data)
table(p0$class, cl)

lpplot(p0$weights, cl, combination=c(3,2))
lpplot(p0$weights, cl)

tortnertuwien/lop documentation built on May 30, 2019, 8:27 a.m.