View source: R/visualization.R
HoverLocator | R Documentation |
Get quick information from a scatterplot by hovering over points
HoverLocator(plot, information = NULL, axes = TRUE, dark.theme = FALSE, ...)
plot |
A ggplot2 plot |
information |
An optional dataframe or matrix of extra information to be displayed on hover |
axes |
Display or hide x- and y-axes |
dark.theme |
Plot using a dark theme? |
... |
Extra parameters to be passed to |
layout
ggplot_build
DimPlot
FeaturePlot
## Not run:
data("pbmc_small")
plot <- DimPlot(object = pbmc_small)
HoverLocator(plot = plot, information = FetchData(object = pbmc_small, vars = 'percent.mito'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.