Skip to content
Prev 181355 / 398502 Next

A question on type="h" plot lines

Martin Ivanov wrote:
Hi Martin,
If you want a constant "value that you specify", you can just use the 
"clip" function:

plot(x,y,type="n",...)
xylim<-par("usr")
clip(xylim[1],xylim[2],"value that I specify",xylim[4])
points(x,y,type="h")

If you want different "values that you specify", I defer to the other Jim.

Jim