Complete canonical API text; task articles explain the workflows. Tutorials
Site guide · find your task
Setup and learning paths
HomeInstall and prepare the environmentChoose your learning moduleModule I · Chord
1.1 Tables and field meanings1.2 Produce and import comparisons1.3 Build the layers step by step1.4 Direction, curvature and clearance1.5 Filter and summarize links1.6 Full source-file workflow1.7 Complete chord showcaseModule II · Collinear
2.1 Reuse chord input tables2.2 Switch coordinates and add layers2.3 Routes, clearance and the ruler2.4 Compare CDS neighbourhoods2.5 Focus, anchors and segments2.6 Complete collinear showcaseModule III · Plasmid
3.1 DNA, annotations and 13 references3.2 From a circle to annotation layers3.3 Features, primers and restriction3.4 Thirteen plasmid references3.5 Complete plasmid casesConsult as needed · Data and layers
Prepare tables and coordinatesImport and convert dataImport nucleotide and protein alignmentsProject protein intervals to genomic coordinatesFeatures, stacking and genomic decorationLabels and local placementQuantitative tracksMappings, scales, guides and themesSet values by sequence and strandCommon adjustments and grammarExport, preview and diagnosticsLearning map and reference
Articles and complete workflowsFunction referenceReproducible galleryFrequently asked questionsMigrate to the candidate APITerminology and design sourcesDevelopment status and changesLabel generic genomic features
Usage
Code
geom_feature_label(
mapping = NULL,
data = NULL,
label_orientation = c("feature", "horizontal", "radial", "tangent"),
label_side = c("outside", "inside", "auto"),
label_overlap = c("hide", "nudge", "allow"),
label_wrap = NULL,
label_rotation = NULL,
label_radial_offset = 0.04,
label_circum_offset = NULL,
label_circum_limit = NULL,
position = "identity",
show.legend = FALSE,
inherit.aes = FALSE,
...
)Arguments
- mapping, data
Standard layer inputs. Map feature text with
label.- label_orientation
One of
"feature","horizontal","radial", or"tangent"."feature"keeps both internal and adjacent labels tangent to the feature direction; compact labels move beside the feature.- label_side
One of
"inside","outside", or"auto".- label_overlap
Fixed-label collision policy.
- label_wrap
Optional character wrapping width.
- label_rotation
Optional numeric/vector/list. Label rotation angle, default 0
- label_radial_offset
Optional numeric/vector/list. Radial offset of labels, default 0.04
- label_circum_offset
Optional numeric/vector/list. Circumferential offset of labels, default 0
- label_circum_limit
Optional logical/vector/list. Whether to limit circumferential offset, default TRUE
- position
Feature Position used for the label anchor. In
coord_collinear(), an omitted Position shares the matching feature layer's lanes; an explicit Position changes only label anchors, leaving feature polygons in their own Position. If both inputs contain uniquefeature_idvalues, label inputs may be subsets or reordered; their accession, interval and strand must still agree. Without IDs, inheritance requires the same interval rows in order. Multiple matching geometry layers require an explicit label Position or unambiguous feature IDs.- show.legend, inherit.aes
Standard ggplot2 layer arguments.
- ...
Additional text parameters.
