Learn R Programming

patterncausality (version 0.2.0)

plot_components: Plot Pattern Causality Components

Description

Visualizes the positive, negative, and dark causality components as a barplot. This function takes a pc_fit object and generates a barplot showing the strength of each causality component.

Usage

plot_components(x, ...)

Value

NULL invisibly.

Arguments

x

An object containing pattern causality results, typically a pc_fit object.

...

Additional arguments passed to the underlying plotting functions.

Examples

Run this code
data(climate_indices)
X <- climate_indices$AO
Y <- climate_indices$AAO
pc_result <- pcLightweight(X, Y, E = 3, tau = 2, metric = "euclidean", h = 1, weighted = TRUE)
plot_components(pc_result)

Run the code above in your browser using DataLab