Geom.path

Draw lines between points in the order they appear in the data. This is an alias for Geom.line with preserve_order=true.

Aesthetics

Examples

Here's a random walk in 2D:

n = 500
srand(1234)
xjumps = rand(n)-.5
yjumps = rand(n)-.5
plot(x=cumsum(xjumps),y=cumsum(yjumps),Geom.path())
x -15 -10 -5 0 5 -5 0 5 10 y

Here's a spiral:

t = 0:0.2:8pi
plot(x=t.*cos(t), y=t.*sin(t), Geom.path)
x -30 -20 -10 0 10 20 30 -30 -20 -10 0 10 20 30 y