Stat.step

Perform stepwise interpolation between points. If x and y define a a series of points, a new point in inserted between each. Between (x[i], y[i]) and (x[i+1], y[i+1]), either (x[i+1], y[i]) or (x[i], y[i+1]) is inserted, depending on the direction argument.

Aesthetics

Arguments

plot(x=rand(25), y=rand(25), Stat.step, Geom.line)
x 0.0 0.5 1.0 0.0 0.5 1.0 y