channelActivityPlot {IONiseR} | R Documentation

## Visualise a specified metric over all channels over time.

### Description

Plots a line for each fast 5 file, arranged by channel and experiment time when the signal was being recorded. The colour of each line can be specified by the user to reflect any metric they wish. The intention of the plot is to investigate trends that may appear at specific time points, or influence a subset of channels.

### Usage

    channelActivityPlot(summaryData, zScale = NULL, zAverage = TRUE)

### Arguments

`summaryData` | Object of class Fast5Summary.
`zScale` | A data.frame containg two columns. The first must be labelled 'id' and correspond to id field present in all slots in summaryData. The second column should contain data pertaining to that reads that you wish to be represented on the coloured z-axis.
`zAverage` | Logical indicating if a bar showing the mean across all channel for the choosen zScale should be shown on the plot. Defaults to TRUE.

### Value

Returns an object of class `gg` representing the plot.

### Examples

    if( require(minionSummaryData) ) {
       require(dplyr)
       data(s.typhi.rep3, package = 'minionSummaryData')
       ## we will plot the median event signal for each read on z-axis
       z_scale = select(eventData(s.typhi.rep3), id, median_signal)
       channelActivityPlot( s.typhi.rep3, zScale = z_scale )
    }

[Package IONiseR version 2.6.0 Index]