Description Usage Arguments Details See Also Examples
View source: R/hypogen_basics.R
scale_x_hypo_LG
adjusts the x axis to match the hamet genome.
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"
)
|
... |
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 |
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
geom_hypo_LG
, scale_color_hypo_LG
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.