make_comparison_matrix {YAPSA} | R Documentation |
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
.
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.
data(sigs) make_comparison_matrix( AlexCosmicValid_sig_df,in_nrect=9, in_palette=colorRampPalette(c("blue","green","red"))(n=100))