ideoView: Construct an ideogram

Description Usage Arguments Details Value Examples

View source: R/ideoView.R

Description

Given a data frame with cytogenetic information, construct an ideogram.

Usage

1
2
3
4
5
6
7
8
ideoView(
  x,
  chromosome = "chr1",
  txtAngle = 45,
  txtSize = 5,
  plotLayer = NULL,
  out = "plot"
)

Arguments

x

Object of class data frame with rows representing cytogenetic bands. The data frame must contain the following column names "chrom", "chromStart", "chromEnd", "name", "gieStain"

chromosome

Character string specifying which chromosome from the "chrom" column in the argument supplied to parameter x to plot.

txtAngle

Integer specifying the angle of text labeling cytogenetic bands.

txtSize

Integer specifying the size of text labeling cytogenetic bands.

plotLayer

additional ggplot2 layers for the ideogram

out

Character vector specifying the the object to output, one of "data", "grob", or "plot", defaults to "plot" (see returns).

Details

ideoView is a function designed to plot cytogenetic band inforamtion. Modifications to the graphic object can be made via the 'plotLayer' parameter, see vignette for details.

Value

One of the following, a list of dataframes containing data to be plotted, a grob object, or a plot.

Examples

1
2
3
4
5
6
# Obtain cytogenetic information for the genome of interest from attached
# data set cytoGeno
data <- cytoGeno[cytoGeno$genome == 'hg38',]

# Call ideoView for chromosome 1
ideoView(data, chromosome='chr1', txtSize=4)

GenVisR documentation built on Dec. 28, 2020, 2 a.m.