Skip to content

Three horizontal axes OR Two axes on same side?

5 messages · Rafael Jimenez, Peter Dalgaard, Vladimir Eremeev

#
Dear list:

I need to reproduce a plot with three different horizontal axes.

I know how to make plot with two different horizontal axes (one
above, one below) using axis():
   axis(1, ....)
   axis(3, ....)

However, I don't know how to produce two axes on the same side of the
plot.

Any pointers or examples?

--
R. Jimenez
#
Rafael Jimenez wrote:
Try this, and I think you'll see the light:

plot(0)
axis(1, line=-3)
#
Try manually drawing the axis using lines() or segments() or arrows() and 
text() or mtext()
#
?axis says that this function has the logical parameter outer "indicating 
whether the axis should be drawn in the outer plot margin, rather than the 
standard plot margin".
You could try two calls to it with different outer values.
#
I have just come to this solution.
However, it seems, I don't understand the meaning of the outer parameter.
What is it for?