grapa.scripts.script_correlations.plot_pearson
- grapa.scripts.script_correlations.plot_pearson(pearson, keysx, keysy, new_graph_kwargs=None)
Plots a Pearson correlation heatmap.
- Parameters:
pearson – A 3D NumPy array containing Pearson correlation coefficients. The first two dimensions represent the correlation matrix, and the third dimension contains the coefficient and p-value.
keysx – List of labels for the x-axis, corresponding to the columns of the correlation matrix.
keysy – List of labels for the y-axis, corresponding to the rows of the correlation matrix.
new_graph_kwargs – Dictionary of additional keyword arguments to customize the Graph object.
- Returns:
A Graph object representing the Pearson correlation heatmap.