[R] How do I move the horizontal axis in a plot so that it starts at the zero of the vertical axis?
Jim Lemon
drjimlemon at gmail.com
Mon May 25 23:42:16 CEST 2015
Hi andrejfavia,
You probably want:
plot(x,y,ylim=c(0,2),yaxs="i")
for question [1], Have a look at the ms.polygram and my.symbols help
pages in the TeachingDemos package for question [2] and I haven't got
a clue about question [3].
Jim
On Tue, May 26, 2015 at 6:39 AM, <andrejfavia at ml1.net> wrote:
> Greetings.
>
> [1] How do I move the horizontal axis in a plot so that it starts at the
> zero of the vertical axis? I tried using ylim=c(0, 2) but it doesn't
> work. I'd also like to keep the "0.0" along the vertical axis and not
> have it vanish.
>
> [2] Also, how do I change the data points to five-pointed stars?
>
> [3] Also, how do I know where threads posted to this email address
> appear on the Nabble forum, so that I can post to it and have my posts
> approved?
>
>
> Example:
>
> x <- c(-2.5, -1.3, 0.6, 0.8, 2.1)
> y <- c(0.3, 1.9, 1.4, 0.7, 1.1)
>
> plot(x, y, ylim=c(0, 2))
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
More information about the R-help
mailing list