Plot the network of elements and covariates based on the long format of sequences
element_covariate_network(
sequences_long,
cutoff = 3,
element,
covariate,
n_permutations = 1000,
pvalue = 0.01,
clusters = FALSE
)
plot of bimodal network containing the elements and covariates
A data frame containing the sequences, with columns for elements and contexts.
minimum number of occurrences for which element or covariate should be included
A string specifying the column name for elements in the sequences data frame.
A string specifying the column name for contexts in the sequences data frame.
An integer specifying the number of permutations for the bootstrapping process.
cutoff pvalue to include combination
should clusters be calculated and added?