Re: [R] Changing the position of the origin

From: Daniel Malter <daniel_at_umd.edu>
Date: Tue, 18 Nov 2008 00:54:33 -0500


Hi, I don't understand the question. If your data is in the fourth quadrant (all positive Xs, all negative Ys) this will happen automatically as the standard R plot plots only in the range where there is data, e.g.

x=rnorm(100,0,1)
e=rnorm(100,0,1)
y=-abs(x)-abs(e)

plot(y~x,bty="n")

Please be more precise about your question.

Cheers,
Daniel



cuncta stricte discussurus

-----Ursprüngliche Nachricht-----
Von: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Im Auftrag von Plantky
Gesendet: Monday, November 17, 2008 11:46 PM An: r-help_at_r-project.org
Betreff: [R] Changing the position of the origin

Hi all,

Can anyone tell me how I can make 0,0 start at the top left hand corner of a graph, instead of the typical lower left hand corner? I've tried to plot with axes=F and then putting on the axes later, but I want the points to correspond to the axes.

Thanks,
Kang Min



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 18 Nov 2008 - 05:57:09 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 18 Nov 2008 - 09:30:26 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