interactive_biplot | R Documentation |
Interactive biplot
interactive_biplot( X, dist, dist_deriv = NULL, k = 2, sample_data = NULL, sample_mapping = aes_string(x = "Axis1", y = "Axis2"), sample_facet = NULL, var_data = NULL, var_mapping = aes_string(x = "Axis1", y = "Axis2"), layout = c(6, 6), width = 600, res = 90 )
X |
A data matrix, samples as rows. |
dist |
Either a string describing one of the supported distances or a function that takes a matrix and returns the distances between the rows of the matrix. |
dist_deriv |
Either NULL (if dist is a string describing one of the supported distances) or a function that takes two vectors and computes \frac{\partial}{\partial y_j}d(x,y). |
k |
The number of embedding dimensions. |
sample_data |
A data frame, containing extra information about the samples to be appended to the embeddings for plotting. |
sample_mapping |
The output from aes_string. Defaut is aes_string(x = "Axis1", y = "Axis2"); add in additional aesthetics to map variables in sample_data. in sample_data. |
sample_facet |
Output from facet_grid or facet_wrap. Can facet on variables in sample_data. |
var_data |
A data frame, containing extra information about the variables to be appended to the local biplot axes for plotting. |
var_mapping |
The output from aes_string. Default is aes_string(x = "Axis1", y = "Axis2"); add in additional aesthetics to map variabes in var_data. |
layout |
The widths of the sample plot window and the variable plot window. Widths are out of 12. |
width |
The width of the plots, in pixels. |
res |
The resolution for the plots. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.