Skip to content
Prev 21106 / 63424 Next

Axis line not appearing with axis(tick=FALSE) (PR#8998)

sean.pieper at gmail.com wrote:
I don't think this is a bug, just the way it is designed.  Normally axis 
only draws the line between the extreme ticks, not for the
whole length of the axis.  If you have no tick, you have no line.

You might get what you want with box(), or by drawing the axes using 
abline(), e.g.

 abline(v=par("usr")[1])

for a vertical line at the lower limit of x values.  As ?par says, 
par("usr") is:

A vector of the form c(x1, x2, y1, y2) giving the extremes of the user 
coordinates of the plotting region. When a logarithmic scale is in use 
(i.e., par("xlog") is true, see below), then the x-limits will be 10 ^ 
par("usr")[1:2]. Similarly for the y-axis.

Duncan Murdoch