Make sure your device of plotting support alpha channel (i.e. you may specify transparency). After your call of the plot function or equivelant use rect function to add rectangle to your plot. Specify the filling color of the rectangle with the col option.