get.gene.locations {qtl2pattern}R Documentation

Helper function to set gene locations on plot.

Description

Figure out gene locations to make room for gene names. Written original by Dan Gatti 2013-02-13

Usage

get.gene.locations(
  locs,
  xlim,
  text_size = 3,
  str_rect = c("iW", "i"),
  n_rows = 10,
  plot_width = 6,
  ...
)

Arguments

locs

tbl of gene information

xlim

X axis limits

text_size

size of text (default 3)

str_rect

character spacing on left and right of rectangles (default c("iW","i"))

n_rows

desired number of rows (default 10)

plot_width

width of default plot window (in inches)

...

additional parameters (not used)

Value

list object used by ggplot_feature_tbl

Author(s)

Brian S Yandell, brian.yandell@wisc.edu Daniel Gatti, Dan.Gatti@jax.org

References

https://github.com/dmgatti/DOQTL/blob/master/R/gene.plot.R


[Package qtl2pattern version 1.2.1 Index]