channelHeatmap: Create layout plot of flowcell

Description Usage Arguments Value Examples

Description

Creates a plot representing the layout of a MinION flow cell. Each circle represents an individual channel with the intensity relecting a specified sequencing metric. This function is a more generalised version of layoutPlot, allowing the user to map any value the like on the channel layout.

Usage

1

Arguments

data

A data.frame or data.table. Should have at least two columns, one of which has the name 'channel'.

zValue

Character string specifying the name of the column to be used for the colour scaling.

Value

Returns an object of gg representing the plot.

Examples

1
2
3
4
5
6
7
8
9
library(dplyr)
if( require(minionSummaryData) ) {
   data(s.typhi.rep2, package = 'minionSummaryData')
   ## calculate and plot the mean number of events recorded by each channel
   avgEvents <- left_join(readInfo(s.typhi.rep2), rawData(s.typhi.rep2), by = 'id') %>% 
   group_by(channel) %>% 
   summarise(mean_nevents = mean(num_events))
   channelHeatmap(avgEvents, zValue = 'mean_nevents')
}


Search within the IONiseR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.