stamp_point.Rd
This function adds a point annotation layer
stamp_point( x = 0, y = 0, size = 8, alpha = 1, shape = "circle", color = "black", stroke = 1, fill = "grey35", xy = NULL )
x | numeric x position, defaults to 0 |
---|---|
y | numeric y position, defaults to 0 |
size | a scalar or vector numeric |
alpha | numeric between 0 and 1 indicating transparency, defaults to 1 fully opaque, zero is fully transparent |
shape | a numeric or character string, "circle" is default but also try "star", "bullet", "diamond", "triangle" |
color | a character string indicating color, defaults to "black", for other named colors check out https://evamaerey.github.io/ggplot2_grammar_guide/named_colors |
stroke | a numeric - size of shape outline |
# stamp in plot space library(ggplot2) ggplot(cars) + aes(speed, dist) + geom_point() + stamp_point() + stamp_point(color = "red", x = 10, y = 100)