Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 736 Bytes

stat_step.md

File metadata and controls

37 lines (25 loc) · 736 Bytes

title: step author: Daniel Jones part: Statistic order: 1000 ...

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

  • x: Point x-coordinate.
  • y: Point y-coordinate.

Arguments

  • direction: Either :hv for horizontal then vertical, or :vh for vertical then horizontal.
using Gadfly

Gadfly.prepare_display()
Gadfly.set_default_plot_size(14cm, 8cm)
srand(1234)
plot(x=rand(25), y=rand(25), Stat.step, Geom.line)