Hello Is it possible to map a plot with horizontal lines like in the step-plot, but without the vertical lines? Thanks, knut -- View this message in context: http://r.789695.n4.nabble.com/stair-step-plot-tp3924903p3924903.html Sent from the R help mailing list archive at 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
On Oct 21, 2011, at 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?There is no function named 'step-plot'. If you are talking about the plot.stepfun function then look at the "verticals" argument.> > Thanks, knut > > -- > View this message in context: http://r.789695.n4.nabble.com/stair-step-plot-tp3924903p3924903.html > Sent from the R help mailing list archive at Nabble.com.David Winsemius, MD West Hartford, CT