Message-ID: <4EA180CD.3090003@gmail.com>
Date: 2011-10-21T14:25:17Z
From: Duncan Murdoch
Subject: stair-step plot
In-Reply-To: <1319193552686-3924903.post@n4.nabble.com>
On 21/10/2011 6:39 AM, knut-o wrote:
> Hello
> Is it possible to map a plot with horizontal lines like in the step-plot,
> but without the vertical lines?
Not in the basic plot function, but you can write your own fairly
easily, using segments(). For example:
x <- y <- 1:10
plot(x,y, type='n')
segments(x[-10], y[-10], x[-1], y[-10])
Duncan Murdoch