# [R] points overlay axis

David Carlson dcarlson at tamu.edu
Tue May 14 15:40:32 CEST 2013

```Try this

set.seed(42)
dat <- matrix(c(runif(48), 0, 0), 25, 2, byrow=TRUE)
# Complete plot symbol on axes, but axis on top
plot(dat, xaxs="i", yaxs="i", pch=16, col="red", xpd=TRUE)
# Complete plot symbol on axes with symbol on top
plot(dat, xaxs="i", yaxs="i", type="n")
points(dat, xaxs="i", yaxs="i", pch=16, col="red", xpd=TRUE)

------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of John Kane
Sent: Tuesday, May 14, 2013 7:47 AM
To: Jonathan Phillips; r-help at r-project.org
Subject: Re: [R] points overlay axis

Probably but since we don't know what you are doing, it is very hard to give

https://github.com/hadley/devtools/wiki/Reproducibility and give us a clear
statement of the problem

Thanks

John Kane

> -----Original Message-----
> From: 994phij at gmail.com
> Sent: Tue, 14 May 2013 13:34:35 +0100
> To: r-help at r-project.org
> Subject: [R] points overlay axis
>
> Hi,
> I'm trying to do quite a simple task, but I'm stuck.
>
> I've set xaxs = 'i' as I want the origin to be (0,0), but
> unfortunately I have points that are sat on the axis.  R draws the
> axis over the points, which hides the points somewhat and looks unsightly.
> Is there any way of getting a point to be drawn over the axis?
>
> Thanks,
> Jon Phillips
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and
family!
Visit http://www.inbox.com/photosharing to find out more!

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help