plotEffect {patterncausality} | R Documentation |
Visualize Pattern Causality Effects
Description
The plotEffect
function generates a plot to visualize the effects of positive, negative, or dark causality based on the results from the pcEffect
function. It displays the influence exerted versus influence received for each item, providing a clear graphical representation of the causality effects.
Usage
plotEffect(effects, status, addlabel = TRUE)
Arguments
effects |
A list containing data frames of causality effects for positive, negative, and dark influences, as returned by the |
status |
A character string specifying which causality effect to plot. Must be one of |
addlabel |
A logical value indicating whether to add labels to the plot. Defaults to |
Value
A scatter plot visualizing the relationship between influence exerted and influence received for the specified causality type. The plot also includes color coding to represent the difference in influence.
Examples
data(climate_indices)
dataset <- climate_indices[,-1]
pcmatrix <- pcMatrix(dataset, E = 3, tau = 1, metric = "euclidean", h = 1, weighted = TRUE)
effects <- pcEffect(pcmatrix)
plotEffect(effects, status = "positive", addlabel = TRUE)