View source: R/geom_terminator.R
geom_terminator | R Documentation |
geom_terminator()
draws a 'T-shaped' glyph representing the position of a
transcription terminator.
geom_terminator(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = FALSE,
terminator_height = unit(3, "mm"),
terminator_width = unit(3, "mm"),
...
)
mapping, data, stat, position, na.rm, show.legend, inherit.aes, ... |
As standard for ggplot2. inherit.aes is set to FALSE by default, as terminators are not likely to share any plot aesthetics other than y. |
terminator_height |
|
terminator_width |
|
x (required; position of the terminator)
y (required; molecule)
alpha
color
linetype
linewidth (the former size aesthetic has been deprecated and will be removed in future versions)
geom_terminator_label()
, geom_feature()
ggplot2::ggplot(example_genes, ggplot2::aes(xmin = start, xmax = end,
y = molecule, fill = gene)) +
geom_gene_arrow() +
geom_terminator(data = example_terminators, ggplot2::aes(x = position, y = molecule)) +
ggplot2::facet_wrap(~ molecule, scales = "free")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.