plot.knnSim | R Documentation |
Visualize the confusion matrix using nearest neighbor as classification model.
plot.knnSim(patientSim, diagnoses, diag)
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. |
p - a plotly scatter plot colored by provided diagnostic labels.
# if you have diagnostic labels associated with the colnames(data_mx), send them using diagnoses parameter p = plot.knnSim(patientSim, diagnoses, diag="diseased") p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.