[R] Odp: axis in a normal plot
petr.pikal at precheza.cz
Fri Sep 26 13:04:51 CEST 2008
r-help-bounces at r-project.org napsal dne 26.09.2008 10:49:40:
> I have a small problem, I'm new in using R, so I hope you can help me...
> I'm running a logistic regression model and want to do a nice plot.
> The plot I have made is done a plot with the command jitter:
> $sex=="F"]),xlab="age",ylab="neg and pos")
> my responsvariable is positive and negative (1 and 0) and my explanatory
> variable are age, year and sex.
> When I run my command plot the yaxis "decide" to make the axis with the
> numbers: -0.2, 0.2, 0.6 and 1.
> What command can I use to change the axis so only 0 and 1 appear?
axis(2, at = c(0,1))
> I have tried ylim=c(0:1) that did not work, and I tried yrange
> Ż`·.¸¸.·´Ż`·.¸¸.·´Ż`·.¸ ><(((ş>
> Silje-Kristin Jensen
> Norsk Polarinstitutt / Norwegian Polar Insitute
> N-9296 Tromsř
> Phone: +47 95166782
> E-mail: silje at npolar.no <mailto:silje at npolar.no>
> JaP please don't print this e-mail unless you really need to
> [[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.
More information about the R-help