Learn R Programming

SUSY (version 0.1.0)

plot.susy: susy plot method

Description

Generate plot(s) for a susy object.

Usage

# S3 method for susy
plot(x, type=c(4, 5), ...)

Value

Returns NULL invisibly. Generate plot(s) as a side effect.

Arguments

x

A susy object.

type

Numeric, specifies the types of plot, defaults to c(4, 5).

  1. GMcrosscorrs

  2. synchrony by segments

  3. GM-Z

  4. time series plot

  5. Z not abs

...

Ignored.

Details

Method can generate multiple types of plots by providing numeric vector to type argument. Note it will generate plots for each pair (cross computation) in x, so the final number of plots is length(x) * length(type).

See Also

susy

Examples

Run this code
n = 1000
data = data.frame(
  var1 = runif(n, 300, 330),
  var2 = runif(n, 300, 330),
  var3 = runif(n, 300, 330)
)
res = susy(data, segment=30L, Hz=15L, permutation=TRUE)
plot(res, type=c(3,5))

Run the code above in your browser using DataLab