Update plot-gradients.r

library -> require