[R] Changing the position of the origin

Plantky ngokangmin at gmail.com
Tue Nov 18 09:53:44 CET 2008


Ok I've figured it out already, I just needed to change the ylim=c
(0,100) to ylim=c(100,0)

Thanks for replying to me though!
Kang Min

On Nov 18, 1:54 pm, "Daniel Malter" <dan... at umd.edu> wrote:
> 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-boun... at r-project.org [mailto:r-help-boun... at r-project.org] Im
> Auftrag von Plantky
> Gesendet: Monday, November 17, 2008 11:46 PM
> An: r-h... 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-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list