Description Usage Arguments Value Examples
View source: R/position-surround.R
Bubble plots sometimes can be hard to interpret, especially if you want to overlay an additional feature. Instead of having to colour one blob with this function you can plot the individuals contributing to the bubble and colour them accordingly.
1 | position_surround(offset = 0.1)
|
offset |
setting offset for x and y axis added to the points surrounding the exact position. Default is 0.1 |
ggproto
1 2 3 4 5 6 7 | library(ggplot2)
library(ggBubbles)
data(MusicianInterestsSmall)
ggplot(data = MusicianInterestsSmall, aes(x = Instrument, y = Genre, col = Level)) +
geom_point(position = position_surround(), size = 4) +
scale_colour_manual(values = c("#333333", "#666666", "#999999", "#CCCCCC")) + theme_bw()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.