podcallChannelPlot {PoDCall} | R Documentation

## podcallChannelPlot

### Description

Function that calls podcallScatterplot and podcallHistogram and draws a plot with both scatter plot and histogram.

### Usage

    podcallChannelPlot(channelData, thr, channel, plotId = NULL)

### Arguments

`channelData` | Amplitude values from one channel of a well.
`thr` | The threshold set for `channel` of a well.
`channel` | The channel the amplitude values belong to.
`plotId` | A character string with title for the plot

### Value

A gtable with scatterplot and histogram

### Examples

    ## Get path to data
    path <- system.file("extdata", "Amplitudes/", package="PoDCall")

    ## Read in data
    data <- importAmplitudeData(path)
    data("thrTable")

    ## Get name of first list element and use as well ID
    well_id <- names(data)[1]

    ## Set channel to plot
    channel <- 1

    ## Get threshold for well_id and channel 1 (see ?thrTable)
    thr <- thrTable[well_id, "thr_target"]

    podcallChannelPlot(channelData=data[[well_id]][[channel]], thr, channel)

[Package PoDCall version 1.2.0 Index]