Attach label to ggplot2::ggplot
Usage
plot_label(
p,
data,
x = NULL,
y = NULL,
label = TRUE,
label.label = "rownames",
label.colour = NULL,
label.alpha = NULL,
label.size = NULL,
label.angle = NULL,
label.family = NULL,
label.fontface = NULL,
label.lineheight = NULL,
label.hjust = NULL,
label.vjust = NULL,
label.repel = FALSE,
label.show.legend = NA,
label.position = "identity"
)Arguments
- p
ggplot2::ggplotinstance- data
Data contains text label
- x
x coordinates for label
- y
y coordinates for label
- label
Logical value whether to display labels
- label.label
Column name used for label text
- label.colour
Colour for text labels
- label.alpha
Alpha for text labels
- label.size
Size for text labels
- label.angle
Angle for text labels
- label.family
Font family for text labels
- label.fontface
Fontface for text labels
- label.lineheight
Lineheight for text labels
- label.hjust
Horizontal adjustment for text labels
- label.vjust
Vertical adjustment for text labels
- label.repel
Logical flag indicating whether to use
ggrepel, enabling this may take some time for plotting- label.show.legend
Logical value indicating whether to show the legend of the text labels
- label.position
Character or a position function