add plot.R modify import to accept arguments and clean