Description Usage Arguments Value Examples
Summarize Percentage Overlap for Two-Way Comparisons between Vectors
1 2 3 | summarize.two.way.comparisons.percentage.overlap(named_list_of_vectors_to_compare,
output_type = "table", melt_table = FALSE, network_graph_minimum = 0,
margins_for_plot = NULL)
|
named_list_of_vectors_to_compare |
A named list of vectors to compare (see, for example, |
output_type |
Either |
melt_table |
A logical (TRUE/FALSE) indicator, when |
network_graph_minimum |
|
margins_for_plot |
The margins for image output (if |
Either a matrix (if output
is "table"
), or an image (if output
is "matrix_plot"
or "network_graph"
). If an image is printed, nothing is returned by the function; rather, the output is printed immediately.
If output
is "table"
and melt_table
is FALSE
, the output will be a matrix with nrow
and ncol
both equal to the number of vectors in named_list_of_vectors_to_compare
. This table shows the decimal percentage overlap (e.g., "0.20" = 20%) between each combination of vectors. This table is intended to be read with row names first, in this form: "[row title] overlaps with [column title] [cell value] percent."
If output
is "table"
and melt_table
is TRUE
, the output will be a melted
data.frame with three columns: Vector_Name
, Overlaps_With
, and Decimal_Percentage
.
1 2 3 4 5 6 7 8 9 10 11 | summarize.two.way.comparisons.percentage.overlap(veccompare::example.vectors.list)
summarize.two.way.comparisons.percentage.overlap(
veccompare::example.vectors.list,
output_type = "table",
melt_table = TRUE
)
summarize.two.way.comparisons.percentage.overlap(
veccompare::example.vectors.list,
output_type = "matrix_plot" # You can also choose "network_graph"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.