I've already seen How to scale the axis in Gnuplot, but I'm not sure how this would work with a function such as
set xrange[-10:10]
f(x) = x**2
plot f(x)
My actual function isn't so easily rescaled as the one above. All I want to do is change the units on the x axis from metres (which is what f(x) accepts), to kilometres.