[R] Tick marks for abline
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Thu Oct 26 19:52:38 CEST 2000
Erin Hodgess <hodgess at uhddx01.dt.uh.edu> writes:
> Dear R People:
>
>
> I am drawing graphs for a College Algebra class. I would like to have
> the x and y axes, along with the lines that I am plotting. So I leave
> off the axes, and use xlim and ylim. Then I add my abline(v=0).
>
> However, I would like to have tick marks on the abline. How would I do
> that, please?
Here's a starting point:
plot(0,0)
axis(1, pos=0)
axis(2, pos=0)
You probably want to leave off the markings at 0.0 there, but check
the help for axis() for things you can do.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list