Description Usage Arguments Value Examples
View source: R/linkspotterGraphOnMatrix.R
Plot the Linkspotter graph from a correlation matrix.
1 2 3 4 5 6 7 8 9 10 | linkspotterGraphOnMatrix(
corMatrix,
cluster = FALSE,
variablesClustering = NULL,
minCor = 0.3,
corMethod = "Coef.",
smoothEdges = T,
dynamicNodes = F,
colorEdgesByCorDirection = F
)
|
corMatrix |
a dataframe corresponding to a matrix of correlation or distance. |
cluster |
a boolean to decide if to cluster variables or an integer corresponding directly to the number of clusters to consider. If variablesClustering is filled, "cluster" parameter is ignored. |
variablesClustering |
a specific dataframe containing the output of the variable clustering resulting from the function clusterVariables() |
minCor |
a double between 0 and 1. It is the minimal correlation absolute value to consider for the first graph plot. |
corMethod |
a string. One of "pearson","spearman","kendall","mic", "distCor" or "MaxNMI". It is the correlation coefficient to consider for the first graph plot. |
smoothEdges |
a boolean. TRUE to let the edges be smooth. |
dynamicNodes |
a boolean. TRUE to let the graph re-organize itself after any movement. |
colorEdgesByCorDirection |
a boolean. TRUE to get the edges colored according to the correlation direction (positive-> blue, negative->red or NA->grey). |
a visNetwork object corresponding to a dynamic graph for the correlation matrix visualization.
1 2 3 4 5 6 | # calculate a correlation dataframe
data(iris)
corDF=multiBivariateCorrelation(dataset = iris)
corMatrix=corCouplesToMatrix(x1_x2_val = corDF[,c('X1','X2',"pearson")])
# launch the graph
linkspotterGraphOnMatrix(corMatrix=corMatrix, minCor=0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.