Skip to content

multiple "stairs steps" plots

1 message · BXC (Bendix Carstensen)

#
You are looking for plot types "s" and "S", try for example:

x<-1:10 
y<-rnorm(10)

plot( x, y, pch=16 )
lines(x,y,type="s")

plot( x, y, pch=16 )
lines(x,y,type="S")

----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 30 75 87 38
fax: +45 44 43 07 06
bxc at steno.dk
www.biostat.ku.dk/~bxc
----------------------