Learn R Programming

qrqc (version 1.26.0)

scale_color_dna: Set the color scheme to biovizBase's for DNA

Description

This wraps ggplot2's scale_color_manual to use biovizBase's scheme for DNA (with N).

Usage

scale_color_dna()

Arguments

See Also

scale_color_iupac, basePlot

Examples

Run this code
  ## Load a FASTQ file
  s.fastq <- readSeqFile(system.file('extdata', 'test.fastq', package='qrqc'))

  ## Plot qualities with the DNA color scheme
  ggplot(getBase(s.fastq)) + geom_line(aes(x=position, y=frequency,
    color=base)) + scale_color_dna()

Run the code above in your browser using DataLab