addbrush {DescribeDisplay} | R Documentation |
This adds a rectangle to a ggplot plot indicating the brush position
addbrush(plot, x,y, width=0.5, height=0.5, just=c("left", "top"), fill=NA, col="black")
plot |
plot object |
x |
x position of brush |
y |
y position of brush |
width |
width of brush |
height |
height of brush |
just |
which corner of brush should be determined by x and y position |
fill |
fill colour for brush (use alpha for alpha blending) |
col |
outline colour of brush |
Hadley Wickham <h.wickham@gmail.com>