View source: R/ggparallel_specific_utils.R
count_all_edge_crossings | R Documentation |
Computes the total number of edge crossings between all pairs of numeric columns in a given dataset.
count_all_edge_crossings(
data,
approximate = FALSE,
subsample_prop = 0.4,
recalibrate = FALSE
)
data |
A |
approximate |
estimate crossings based on a subsample of the data. See |
subsample_prop |
only used when approximate = TRUE. If 0-1, controls the proportion of data to be sampled to speed up computation. If a whole number other than 0 or 1, represents the number of rows subsampled |
recalibrate |
when approximating crossings via subsetting, should number of crossings calculated for the subsample be upscaled to match the full count. (turned off by default since it amplifies sampling error). |
The function:
Filters the input data to retain only numeric columns.
Computes all possible pairs of numeric columns.
Uses count_edge_crossings()
to calculate crossings for each pair.
Returns the results in a summarized data frame.
A data.frame
with three columns:
The name of the first column in the pair.
The name of the second column in the pair.
Total number of edge crossings for that pair.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.