cchebyshev | R Documentation |
This function takes a dataset, a factor, a p_value method, number of bootstraps and permutation when necessary, and returns a p_values matrix between each pair of species and a plot if the user select TRUE using the Chebyshev distance for the distances calculation.
cchebyshev(
dataset,
formula,
plot = TRUE,
plot_title = "Chebyshev Distance Between Groups"
)
dataset |
A dataframe. |
formula |
A factor which you want to calculate Chebyshev distance. |
plot |
If TRUE, displays a plot of distances. |
plot_title |
The title of plot. |
A matrix containing distances and, optionally, the plot.
# Example with iris dataset
cchebyshev(iris, ~Species, plot = TRUE, plot_title = "Chebyshev Distance Between Groups")
# Example with mtcars dataset
cchebyshev(mtcars, ~am, plot = TRUE, plot_title = "Chebyshev Distance Between Groups")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.