Added axes labels and legend, param to set legend labels in R fcn.