plot-HRTList-method: Plot an HRTList object

Description Usage Arguments Value Note Examples

Description

Plots RR-intervals saved in the HRT objects, especially the avHRT object, and marks the HRT parameters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'HRTList'
plot(
  x,
  cropped = TRUE,
  TT = FALSE,
  pch = 20,
  xlab = "# of RR interval",
  ylab = "length of RR interval (ms)",
  paramsLegend = TRUE,
  colTO = "#ec2023",
  colTS = "#006AFF",
  colTT = "#6800DE",
  ...
)

Arguments

x

HRTList

cropped

(Boolean) Should the plot be cut to focus on the HRT parameters? To show all points use FALSE.

TT

(Boolean) Should Turbulence timing be marked?

pch

(Numeric) Plotting character, for other options see graphics::var

xlab

(Character) Label for the x axis

ylab

(Character) Label for the y axis

paramsLegend

(Boolean) Should the parameter values of the HRT be plotted?

colTO

(Character) Colour used to highlight TO

colTS

(Character) Colour used to highlight TS

colTT

(Character) Colour used to highlight TT

...

Other arguments in tag = value form

Value

No return value

Note

Please note that some graphics parameters (par) cannot be modified, since they are needed to be set inside the function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# You need an HRTList
hrtl <- vectorToHRT(testdataLong, testdataLong_Ann)

# Plot your HRTList and zoom out
plot(hrtl, cropped = FALSE)

# Include TT and customise it
plot(hrtl, TT = TRUE, colTT = "green", pch = 7)

# Use standard graphics parameters
## Note: Some parameters are used inside the function and cannot be set
plot(hrtl, TT = TRUE, main = "Example plot", bty = "n", cex.lab = 1.2)

RHRT documentation built on June 29, 2021, 9:06 a.m.