Fix in scaleCurve

Add support for data.frame