Skip to content
Prev 66743 / 398525 Next

Finding the "height of a line of text" for axis

On Wed, 2005-03-30 at 11:06 +0100, Steven J. Murdoch wrote:
Steven,

Are you trying to do something like this:

 plot(1:5, axes = FALSE)
 axis(1, col.axis = "white", tcl = 1)
 axis(2, col.axis = "white", tcl = 1)

or perhaps something like this:

 plot(1:5, axes = FALSE)
 axis(1, col.axis = "white", col = "red", tcl = 1)
 axis(1, col.axis = "white", col = "black", tcl = 0)
 axis(2, col.axis = "white", col = "red", tcl = 1)
 axis(2, col.axis = "white", col = "black", tcl = 0)

or even something like this:

 plot(1:5, axes = FALSE)
 axis(1, col.axis = "white", col = "red", tcl = 1)
 axis(1, col.axis = "white", col = "white", tcl = 0)
 axis(2, col.axis = "white", col = "red", tcl = 1)
 axis(2, col.axis = "white", col = "white", tcl = 0)

If you do not want the axis labels, use:

 plot(1:5, axes = FALSE, ann = FALSE)


HTH,

Marc Schwartz