Plot (thresholded) distance matrix as a network
Usage
rn_plot(
RN,
plotDimensions = FALSE,
plotMeasures = FALSE,
drawGrid = FALSE,
markEpochsLOI = NULL,
radiusValue = NA,
title = "",
xlabel = "",
ylabel = "",
plotSurrogate = NA,
returnOnlyObject = FALSE
)
Arguments
- RN
A distance matrix or recurrence matrix
- plotDimensions
Should the state vectors be plotted if they are available as attributes of RM (default =
TRUE
)- plotMeasures
Print common (C)RQA measures in the plot if the matrix is binary (default =
FALSE
)- drawGrid
Draw a grid on the recurrence plot (default =
FALSE
)- markEpochsLOI
Pass a factor whose levels indicate different epochs or phases in the time series and use the line of identity to represent the levels by different colours (default =
NULL
)- radiusValue
If
plotMeasures = TRUE
and RM is an unthresholded matrix, this value will be used to calculate recurrence measures. IfplotMeasures = TRUE
and RM is already a binary recurrence matrix, pass the radius that was used as a threshold to create the matrix for display purposes. IfplotMeasures = TRUE
andradiusValue = NA
, functionest_radius()
will be called with default settings (find a radius that yields.05
recurrence rate). IfplotMeasures = FALSE
this setting will be ignored.- title
A title for the plot
- xlabel
An x-axis label
- ylabel
An y-axis label
- plotSurrogate
Should a 2-panel comparison plot based on surrogate time series be added? If
RM
has attributesy1
andy2
containing the time series data (i.e. it was created by a call to rp), the following options are available: "RS" (random shuffle), "RP" (randomised phases), "AAFT" (amplitude adjusted fourier transform). If no timeseries data is included, the columns will be shuffled. NOTE: This is not a surrogate test, just 1 surrogate is created fromy1
. (default =FALSE
)- returnOnlyObject
Return the ggplot object only, do not draw the plot (default =
TRUE
)