geom_gene_label | R Documentation |
These geom_..._label()
functions able the user to plot labels/text at individual features and/or links.
Users have to indicate how to label the features/links by specifying label = ...
or aes(label = ...
Position of labels can be adjusted with arguments such as vjust
, hjust
, angle
, nudge_y
, etc.
Also check out geom_bin_label()
, geom_seq_label()
or geom_feat_text()
given their resemblance.
geom_gene_label(
mapping = NULL,
data = genes(),
angle = 45,
hjust = 0,
nudge_y = 0.1,
size = 6,
...
)
geom_feat_label(
mapping = NULL,
data = feats(),
angle = 45,
hjust = 0,
nudge_y = 0.1,
size = 6,
...
)
geom_link_label(
mapping = NULL,
data = links(),
angle = 0,
hjust = 0.5,
vjust = 0.5,
size = 4,
repel = FALSE,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
angle |
Defines the angle in which the text will be placed. *Note |
hjust |
Moves the text horizontally |
nudge_y |
Moves the text vertically an entire contig/sequence.
(e.g. |
size |
of the label |
... |
Other arguments passed on to
|
vjust |
Moves the text vertically |
repel |
use ggrepel to avoid overlaps |
These labeling functions use ggplot2::geom_text()
under the hood.
Any changes to the aesthetics of the text can be performed in a ggplot2 manner.
Gene labels are added as a text layer/component to the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.