Description Usage Arguments Value See Also Examples
Compute and plot a similarity matrix for different strata from different
stratification axes together. First, compare_sets
is called on
in_strata_df
with itself, yielding a distance matrix (a numerical data
frame) dist_df
of the strata. The corresponding similarity matrix
1-dif_df
is then passed to corrplot
.
1 2 3 4 5 6 7 | make_comparison_matrix(
in_strata_df,
output_path = NULL,
in_nrect = 5,
in_attribute = "",
in_palette = NULL
)
|
in_strata_df |
Numerical data frame of all strata to be compared. |
output_path |
Path to directory where the results, especially the figure
produced by |
in_nrect |
Number of clusters in the clustering procedure provided by
|
in_attribute |
Additional string for the file name where the figure
produced by |
in_palette |
Colour palette for the matrix |
The comparison matrix of cosine similarities.
1 2 3 4 | data(sigs)
make_comparison_matrix(
AlexCosmicValid_sig_df,in_nrect=9,
in_palette=colorRampPalette(c("blue","green","red"))(n=100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.