Re: [R] in axis() suppressing axis line but keeping tick marks

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon, 16 Jun 2008 21:12:13 -0400

You could try overwriting the axis with a white axis line so it blends into the background.

plot(1:10, axes = FALSE)
axis(1)
axis(1, col = "white", tcl = 0)


On Mon, Jun 16, 2008 at 2:52 PM, Andrew Yee <yee_at_post.harvard.edu> wrote:
> I've been trying to figure out a parameter that will let you separately
> adjust the parameters for the axis line from the tick mark.
>
> In the following example, I would like to suppress the axis line, but keep
> the tick marks.
>
> Thanks,
> Andrew
>
>
> foo <- data.frame(x=1:3, y=4:6)
> plot(foo$x, foo$y, type="n", axes=F)
> points(foo$x, foo$y)
> axis(side=1, at=foo$x, lty=0) #would like to figure out way to keep tick
> marks, but suppress axis line
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 01:33:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 02:30:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive