addCodonFrame {CrispRVariants} | R Documentation

## Internal CrispRVariants function for indicating codon frame on an alignment tile plot

### Description

Adds vertical dotted lines in intervals of three nucleotides. Codon frame is supplied, alignments are assumed not to span an intron-exon junction.

### Usage

    addCodonFrame(p, width, codon.frame)

### Arguments

`p` | A ggplot object, typically from CrispRVariants:::makeAlignmentTilePlot
`width` | The number of nucleotides in the alignments
`codon.frame` | The leftmost starting location of the next codon - 1,2,or 3

### Value

A ggplot object with added vertical lines indicating the frame

### Author(s)

Helen Lindsay

[Package CrispRVariants version 1.20.0 Index]