channelActivityPlot: Visualise a specified metric over all channels over time.

Description Usage Arguments Value Examples

View source: R/plotting_summaryStats.R

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

1
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

1
2
3
4
5
6
7
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 )
}

IONiseR documentation built on Nov. 8, 2020, 6 p.m.