Learn R Programming

genoset (version 1.28.2)

genomeAxis: Label axis with base pair units

Description

Label an axis with base positions

Usage

genomeAxis(locs = NULL, side = 1, log = FALSE, do.other.side = TRUE)

Arguments

locs
GenomicRanges to be used to draw chromosome boundaries, if necessary. Usually rowRanges slot from a GenoSet.
side
integer side of plot to put axis
log
logical Is axis logged?
do.other.side
logical, label non-genome side with data values at tick marks?

Value

  • nothing

Details

Label a plot with Mb, kb, bp as appropriate, using tick locations from axTicks

See Also

Other "genome plots": genoPlot

Examples

Run this code
data(genoset,package="genoset")
  genoPlot(genoPos(genoset.ds), genoset.ds[,1, "baf"])
  genomeAxis( locs=rowRanges(genoset.ds) )  # Add chromosome names and boundaries to a plot assuming genome along x-axis
  genomeAxis( locs=rowRanges(genoset.ds), do.other.side=FALSE ) # As above, but do not label y-axis with data values at tickmarks
  genomeAxis()           # Add nucleotide position in sensible units assuming genome along x-axis

Run the code above in your browser using DataLab