R as a plotting engine