Fixed bug in plot.RD

Was not capturing frame properly.