Plot method for netify_comparison objects
Source: R/plot.netify_comparison.R
plot.netify_comparison.Rdrenders a pairwise similarity heatmap from the matrix output of
compare_networks(). picks an appropriate matrix based on the
method the comparison was run with (correlation / qap / jaccard /
hamming / spectral). for qap comparisons, the plot renders the qap
correlation matrix. p-values remain available in
x$significance_tests$qap_pvalues.
Usage
# S3 method for class 'netify_comparison'
plot(x, ...)Arguments
- x
a
netify_comparisonobject returned bycompare_networks().- ...
additional arguments:
metricwhich matrix to render. default: auto-pick the primary metric for the comparison's method. pass
"correlation"/"jaccard"/"hamming"/"qap"/"spectral"to override.show_valueslogical. overlay numeric values on each tile. default
TRUEwhen n <= 6, elseFALSE.palettetwo-color gradient endpoints. default
c("#f0f0f0", "#1f78b4")for correlation-like metrics.