Displaying 1 result from an estimated 1 matches for "responsvariable".
Did you mean:
responsevariable
2008 Sep 26
2
axis in a normal plot
...lp 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:
plot(jitter(overto$age[overto$sex=="F"]),jitter(overto$neg.pos[overto$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?
I have tried ylim=c(0:1) that di...