make_galaxy_plot | R Documentation |
Pretty sure Kevin Bi deserve the credit for this code but I've messed around with it some too
make_galaxy_plot(
.tbl,
sample_n = 800,
x = "UMAP_1",
y = "UMAP_2",
pointsize = 0,
pixels = c(512, 512)
)
.tbl |
a data frame or tibble with x and y coordinates |
sample_n |
the number of points to display on top of the density map. Set to 0 to remove all points |
x |
string designating variable to plot on x-axis |
y |
string designating variable to plot on y-axis |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.