Improve RPlotGraph class