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

Olivier Crouzet o||v|er@crouzet @end|ng |rom un|v-n@nte@@|r
Thu Nov 28 19:43:19 CET 2024


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 +0000
Michael Dewey <lists using dewey.myzen.co.uk> 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 everything
> except the left hand side and the base. I could also remove the
> entire box but that looks odd. Am I reading the documentation
> incorrectly or is it really impossible?
> 
> -- 
> Michael
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.


-- 
  Olivier Crouzet, PhD
  http://olivier.ghostinthemachine.space
  /Maître de Conférences/
  @LLING - Laboratoire de Linguistique de Nantes
    UMR6310 CNRS / Université de Nantes



More information about the R-help mailing list