Add text labels to a ggplot2 plot
Add text labels to a ggplot2 plot
LabelPoints( plot, points, labels = NULL, repel = FALSE, xnudge = 0.3, ynudge = 0.05, ... )
plot |
A ggplot2 plot with a GeomPoint layer |
points |
A vector of points to label; if |
labels |
A vector of labels for the points; if |
repel |
Use |
xnudge, ynudge |
Amount to nudge X and Y coordinates of labels by |
... |
Extra parameters passed to |
A ggplot object
data("pbmc_small") ff <- TopFeatures(object = pbmc_small[['pca']]) cc <- TopCells(object = pbmc_small[['pca']]) plot <- FeatureScatter(object = pbmc_small, feature1 = ff[1], feature2 = ff[2]) LabelPoints(plot = plot, points = cc)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.