A complete rip-off of the geom_dumbbell function from hrbrmstr/ggalt, but with: 1) size_x and size_xend aesthetics (unlike in the original geom_dumbbell, where the sizes are parameters) so that you can size the dots, for example by the relative number of observations in each group; 2) labels on the dots. so far, the labels correspond to the values of the variable on the x-axis, rounded to 2 decimal points.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
... |
other arguments passed on to |
colour_x |
the colour of the start point |
size_x |
the size of the start point |
colour_xend |
the colour of the end point |
size_xend |
the size of the end point |
dot_guide |
if |
dot_guide_size |
singe-value aesthetics for |
dot_guide_colour |
singe-value aesthetics for |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.