geom_subgene_label() can be used to add a text label to subgenes drawn
geom_subgene_label( mapping = NULL, data = NULL, stat = "identity", position = "identity", na.rm = FALSE, show.legend = FALSE, inherit.aes = TRUE, padding.x = grid::unit(1, "mm"), padding.y = grid::unit(0.1, "lines"), align = "centre", min.size = 4, grow = F, reflow = F, height = grid::unit(3, "mm"), ... )
|mapping, data, stat, position, na.rm, show.legend, inherit.aes, ...||
geom arguments as for
Where inside the subgene to place the text label. Default is 'centre'; other options are 'left' and 'right'.
Minimum font size, in points. If provided, text that would need to be shrunk below this size to fit inside the subgene will not be drawn. Defaults to 4 pt.
geom_subgene_label() uses the 'ggfittext' package to fit text to genes.
All text drawing options available in
reflowing, etc.) are also available here. For full details on how these
options work, see the documentation for
Standard 'ggplot2' aesthetics for text are supported (see Aesthetics.)
xsubmin,xsubmax (start and end of the subgene; required)
y (molecule; required)