plot_ETG4000: Plot the raw signal

Description Usage Arguments Value Examples

Description

Plot the raw signal

Usage

1
plot_ETG4000(x, type = "facets", channel = NULL)

Arguments

x

A data frame with an ETG-4000 data.

type

A string. Specifies the type of plot. Options: "facets", "epoch", "overlap", "separate", "average". Defaults to "facets".

channel

An integer. Represents the channel number.

Value

A plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
file_path <- system.file("extdata", "Hitachi_ETG4000_24Ch_Total.csv", package = "fnirsr")
ETG_header <- load_ETG4000_header(file_path)
rawData <- load_ETG4000_data(file_path, ETG_header)

plot_ETG4000(rawData)
plot_ETG4000(rawData, type = "overlap")
plot_ETG4000(rawData, type = "separate", channel = 1)

averagedData <- grand_average_ETG4000(rawData)
plot_ETG4000(averagedData, type = "average")

erzk/fnirsr documentation built on May 16, 2019, 8:50 a.m.