use buttons to set variables
WARNING: far from the best as the line will seem disconnected equation: y=a(r)^x