Description Usage Arguments Value See Also Examples
View source: R/visualization.R
Add text labels to a ggplot2 plot
1 2 3 4 5 6 7 8 9 |
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
1 2 3 4 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.