Add brush to plot 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 = "transparent", col = "black")
plot object
x position of brush
y position of brush
width of brush
height of brush
which corner of brush should be determined by x and y position
fill colour for brush. Use ggplot-alpha for alpha blending.
outline colour of brush
Hadley Wickham h.wickham@gmail.com