Skip to contents

Renders a classical recurrence plot — a square binary image where a filled point at position (i, j) means the system revisited state j at time i. Diagonal lines indicate deterministic structure; vertical lines indicate laminar (intermittent) behaviour.

The function accepts the experdyn_rqa object produced by compute_rqa(), which stores the sparse recurrence coordinates computed during analysis.

Usage

plot_rqa(
  data,
  facet_by = c("participant", "series"),
  max_n = 300L,
  point_colour = "black",
  background_colour = "white"
)

Arguments

data

An experdyn_rqa object returned by compute_rqa().

facet_by

[character(1): "participant"]
Whether to create one panel per "participant" (default) or per "series" (subseries-level, useful for exploratory inspection).

max_n

[integer(1): 300]
Maximum time index retained per panel for plotting. Points with i or j greater than max_n are trimmed. Set to Inf (or 0) to plot all points.

point_colour

[character(1): "black"]
Fill colour of recurrent points.

background_colour

[character(1): "white"]
Background (non-recurrent) colour.

Value

A ggplot2::ggplot() object.

See also

compute_rqa() for computing the RQA object passed here.