[R] points overlay axis
dcarlson at tamu.edu
Tue May 14 15:40:32 CEST 2013
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
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
Please read this for a start
https://github.com/hadley/devtools/wiki/Reproducibility and give us a clear
statement of the problem
Kingston ON Canada
> -----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
> 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?
> Jon Phillips
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and
Visit http://www.inbox.com/photosharing to find out more!
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help