Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-29 Thread Duncan Murdoch
On 2024-11-28 12:36 p.m., Fer wrote: That's pretty similar to call axis function, i.e.  plot(rnorm(100), yaxt="n", bty="n")  usr <- par("usr")  ## lines(usr[c(1,2)], usr[c(3,3)], xpd = TRUE)  axis(1, ...) # where 1 is bottom, 2 left, 3 top, and 4 right sides of the plot box) You don'

Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-29 Thread Fer
That's pretty similar to call axis function, i.e.  plot(rnorm(100), yaxt="n", bty="n")  usr <- par("usr")  ## lines(usr[c(1,2)], usr[c(3,3)], xpd = TRUE)  axis(1, ...) # where 1 is bottom, 2 left, 3 top, and 4 right sides of the plot box) Best Fer On 11/28/24 14:52, Duncan Murdoch wrote:

Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-28 Thread Olivier Crouzet
Dear Michael, Isn't the axis() function what you're looking for? plot(rnorm(10), rnorm(10), axes=FALSE) axis(1) see help(axis) Yours. Olivier. On Thu, 28 Nov 2024 13:36:21 + Michael Dewey wrote: > To make the plot clearer I have removed the axes but I wish to remove > all the boz exce

Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-28 Thread Martin Maechler
> Michael Dewey > on Thu, 28 Nov 2024 15:27:59 + writes: > Thank you Duncan, I will try that next. > Michael > On 28/11/2024 13:52, Duncan Murdoch wrote: >> On 2024-11-28 8:36 a.m., Michael Dewey wrote: >>> To make the plot clearer I have removed the axes but

Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-28 Thread Michael Dewey
Thank you Duncan, I will try that next. Michael On 28/11/2024 13:52, Duncan Murdoch wrote: On 2024-11-28 8:36 a.m., Michael Dewey wrote: To make the plot clearer I have removed the axes but I wish to remove all the boz except the bottom horizontal line. Using the bty parameter does not seem to

Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-28 Thread Duncan Murdoch
On 2024-11-28 8:36 a.m., Michael Dewey wrote: To make the plot clearer I have removed the axes but I wish to remove all the boz except the bottom horizontal line. Using the bty parameter does not seem to enable me to just leave the horizontal line at the foot. I can get the "l" version to remove

[R] Remove all box around a plot except bottom line (base graphics)

2024-11-28 Thread Michael Dewey
To make the plot clearer I have removed the axes but I wish to remove all the boz except the bottom horizontal line. Using the bty parameter does not seem to enable me to just leave the horizontal line at the foot. I can get the "l" version to remove everything except the left hand side and the