scale_x_hypo_LG: Format genome wide x axis

Description Usage Arguments Details See Also Examples

View source: R/hypogen_basics.R

Description

scale_x_hypo_LG adjusts the x axis to match the hamet genome.

Usage

1
2
3
4
5
6
7
8
scale_x_hypo_LG(
  ...,
  name = "",
  expand = c(0, 0),
  breaks = (hypo_karyotype$GSTART + hypo_karyotype$GEND)/2,
  labels = 1:24,
  position = "top"
)

Arguments

...

parameters passed to ggplot2::scale_x_continuous()

name

string/ expression, x axis title

expand

numeric vector of length 2

breaks

numeric vector, x axis breaks

labels

string vector, x axis labels

position

string ("top"/ "bottom"), axis placement

Details

Each of the LGs is labelled with on tick which is placed in the center of the LG. The should be combined with hypogen::geom_hypo_LG

See Also

geom_hypo_LG, scale_color_hypo_LG

Examples

1
2
3
4
5
6
ggplot() +
  geom_hypo_LG() +
  scale_fill_hypo_LG_bg() +
  scale_x_hypo_LG() +
  coord_cartesian(ylim = c(0, 1)) +
  theme_hypo()

k-hench/hypogen documentation built on April 14, 2021, 1:44 p.m.