plot.knnSim: Visualize the confusion matrix using nearest neighbor as...

View source: R/plot.knnSim.r

plot.knnSimR Documentation

Visualize the confusion matrix using nearest neighbor as classification model.

Description

Visualize the confusion matrix using nearest neighbor as classification model.

Usage

plot.knnSim(patientSim, diagnoses, diag)

Arguments

patientSim

- The patient similarity matrix.

diagnoses

- A character vector of diagnostic labels associated with the rownames of patientSim. The names of this vector are patient IDs, and values are diagnostic labels.

diag

- The diagnosis associated with positive controls in your data.

Value

p - a plotly scatter plot colored by provided diagnostic labels.

Examples

# if you have diagnostic labels associated with the colnames(data_mx), send them using diagnoses parameter
p = plot.knnSim(patientSim, diagnoses, diag="diseased")
p

BRL-BCM/CTDext documentation built on May 7, 2022, 5:31 a.m.