visualize_pair_correlation | R Documentation |
This function computes and plots correlation between pair of centrality measures and histogram plots.
visualize_pair_correlation(x, y, scale = TRUE)
x |
a vector containing a centrality measure |
y |
a vector containing another centrality measure |
scale |
Whether the centrality values should be scaled or not |
This function illustrates the correlation value between two centrality measures and their corresponding scatterplot and histograms.
The function computes and plots the correlation between two centrality measures. The function takes two vectors, 'x' and 'y', representing the centrality measures to be correlated. If the 'scale' parameter is set to 'TRUE', the centrality values will be scaled before computing the correlation. The function creates a correlation plot, which includes a scatterplot of the centrality values and histograms of each measure. The correlation coefficient between the two measures is displayed on the plot. The function returns the correlation plot.
Minoo Ashtiani, Mehdi Mirzaie, Mohieddin Jafari
Emerson, J. W., Green, W. A., Schloerke, B., Crowley, J., Cook, D., Hofmann, H., & Wickham, H. (2013). The Generalized Pairs Plot. Journal of Computational and Graphical Statistics, 22(1), 79–91.
ggpairs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.