powered by
ggrepel labeling of clusters
label_repel( g, group_col = "auto", x = "x", y = "y", txt_pt = 3, remove_current = "auto", layer = "auto", ggbuild = NULL, ... )
function, if data.frame input, or new ggplot object
ggplot object or data.frame
column name in data.frame, default to "label" or "group" in ggplot data
column name in data.frame for x
column name in data.frame for y
text size
whether to remove current text
text layer to remove, defaults to last
already built ggplot_built object if available
arguments passed to geom_text_repel
g <- label_repel(ggplot2::ggplot(mtcars, ggplot2::aes(x = hp, y = wt, color = as.character(cyl))) + ggplot2::geom_point(), remove_current = FALSE)
Run the code above in your browser using DataLab