Rcmd extension for plottting