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 = TRUEand RM is an unthresholded matrix, this value will be used to calculate recurrence measures. IfplotMeasures = TRUEand RM is already a binary recurrence matrix, pass the radius that was used as a threshold to create the matrix for display purposes. IfplotMeasures = TRUEandradiusValue = NA, functionest_radius()will be called with default settings (find a radius that yields.05recurrence rate). IfplotMeasures = FALSEthis 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
RMhas attributesy1andy2containing 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)
See also
Other Distance matrix operations (recurrence network):
mat_di2bi(),
mat_di2ch(),
mat_di2we(),
rn(),
rn_phaseInfo(),
rn_phases(),
rn_recSpec()
