plot-HRT-method: Plot an HRT object

Description Usage Arguments Value Note Examples

Description

Plots RR-intervals saved in the HRT object and marks turbulence onset and turbulence slope.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S4 method for signature 'HRT'
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",
  add = FALSE,
  ...
)

Arguments

x

(HRT) A HRT object

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

add

(Boolean) Should the given HRT be added to a plot?

...

Other arguments in tag = value form. See graphics::par for more information.

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 HRT object
hrt <- vectorToHRT(testdataLong, testdataLong_Ann)@HRTs[[1]]

# Plot your HRT and zoom out
plot(hrt, cropped = FALSE)

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

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

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