rn_phases | R Documentation |
This function will extract phases (regions of attraction in phase space) based on a weighted RN
object created with function rn.
The assumption is that coordinates in state space that are either close in terms of distance, or are re-visited with short recurrence times,
or with high-frequency, are regions of attraction for the system.
rn_phases(
RN,
maxPhases = NA,
minStatesinPhase = 2,
maxStatesinPhase = NROW(RN),
useDegree = FALSE,
inverseWeight = TRUE,
cleanUp = TRUE,
returnCentroid = c("no", "mean.sd", "median.mad", "centroid")[1],
removeSingularities = FALSE,
standardise = c("none", "mean.sd", "median.mad", "unit")[4],
returnGraph = FALSE,
doPhaseProfilePlot = FALSE,
plotCentroid = FALSE,
dimNames = NULL,
colOrder = FALSE,
phaseColours = NULL,
doSpiralPlot = FALSE,
doPhaseSeriesPlot = FALSE,
doPhaseSpacePojectionPlot = FALSE,
showEpochLegend = TRUE,
epochColours = NULL,
epochLabel = "Phase",
excludeOther = FALSE,
excludeNorec = TRUE
)
RN |
A matrix produced by the function rn |
maxPhases |
The maximum number of phases to extract. These will be the phases associated with the highest node degree or node strength. All other recurrent points will be labelled with "Other". If |
minStatesinPhase |
A parameter applied after the extraction of phases (limited by |
maxStatesinPhase |
A parameter applied after the extraction of phases (limited by |
useDegree |
By default, node strength will be used to determine the phases. Set to |
inverseWeight |
Whether to perform the operation |
cleanUp |
Try to assign states to phases that were not assigned by the algorithm. If |
returnCentroid |
Values can be |
removeSingularities |
Will remove states that recur only once (nodes with |
standardise |
Standardise the series using |
returnGraph |
Returns all the graph object objects of the plots that have been produced (default = |
doPhaseProfilePlot |
Produce a profile plot of the extracted phases (default = |
plotCentroid |
Plot the centroid requested in |
dimNames |
A vector of titles to use for the dimensions. If |
colOrder |
Should the order of the dimensions reflect the order of the columns in the dataset? If |
phaseColours |
Colours for the different phases in the phase plot. If |
doSpiralPlot |
Produce a plot of the recurrence network with the nodes coloured by phases (default = |
doPhaseSeriesPlot |
Produce a time series of the phases as they occur with a marginal histogram of their frequency (default = |
showEpochLegend |
Should a legend be shown for the epoch colours? (default = |
epochColours |
A vector of length |
epochLabel |
A title for the epoch legend (default = |
excludeOther |
Should the phase "Other" be excluded from plots? (default = |
excludeNorec |
Should the category "No recurrence" be excluded from plots? (default = |
doPhaseSpaceProjectionPlot |
produce a 2D |
The method used for the identification of phases is on the properties of the RN
object:
If weighted by distance "si"
, the inverse distance will be used, which means higher weights correspond to closer states.
If weighted by recurrence time "rt"
, the inverse time will be used, which means higher weights correspond to faster recurrence times.
The procedure is as follows:
Identify the node with the highest strength
Identify the nodes that connect to this node
Identify the node with highest strength that does not connect to the node identified in step 1.
Repeat until criteria set in maxPhases
, minStatesinPhase
and maxStatesinPhase
are triggered.
Clean up. If cleanUp = TRUE
the remaining states that connect to nodes of one of the identified phases, but not to the node with highest strength identified in step 1 will be added to that phase. Otherwise these nodes will end up in category "Other".
A data frame with information about the phases or a list object with data and graph objects (if requested).
Other Distance matrix operations (recurrence network):
mat_di2bi()
,
mat_di2ch()
,
mat_di2we()
,
rn()
,
rn_plot()
,
rn_recSpec()
# Use the ManyAnalysts dataset to create a phase plot with default settings
data("manyAnalystsESM")
df <- manyAnalystsESM[4:10]
RN <- rn(y1 = df, doEmbed = FALSE, weighted = TRUE, weightedBy = "si", emRad = NA)
# This returns 6 phases which have minimally 2 states
rn_phases(RN, maxPhases = 10, doPhaseProfilePlot = TRUE)
# Use min. number of states as the extraction criterion
rn_phases(RN, maxPhases = NA, minStatesinPhase = 7, doPhaseProfilePlot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.