plot.mdsSim | R Documentation |
This function plots the provided patient similarity matrix in a lower dimensional space using multi-dimensional scaling, which is well suited for similarity metrics.
plot.mdsSim(patientSim, diagnoses, k, diag)
patientSim |
- The patient similarity matrix. |
diagnoses |
- A character vector of diagnostic labels associated with the rownames of patientSim. |
k |
- The number of dimension you want to plot your data using multi-dimensional scaling. |
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.mdsSim(patientSim, diagnoses, k=2, diag="diseased") p p = plot.mdsSim(patientSim, diagnoses, k=3, diag="diseased") p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.