View source: R/plot_functions.R
autoPointSize | R Documentation |
Automatically determine optimal point size for geom_point()
autoPointSize(n.points, scale.factor = 10000, max.size = 2, min.size = 0.01)
n.points |
Number of data points |
scale.factor |
scaling constant used to determine optimal point size. |
max.size |
max point size |
min.size |
min point size |
optimal point size
gg.plot <- df.umap %>% dplyr::arrange(get(module.names[i])) %>%
ggplot(aes(x = x, y = y, color = get(module.names[i]))) +
geom_point(size = autoPointSize(nrow(df.umap)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.