[R] Tick marks for abline
ben at zoo.ufl.edu
Thu Oct 26 20:23:24 CEST 2000
I'm a little bit puzzled by your requirements. If you want just x and y
axes and not the top and right sides of the box plotted you could try
par(bty="l") [which I actually prefer as my default setting].
Alternately, you can use axis() with side=1 or side=2 to draw the axis
after doing the main plot (and control ticks, labels, style, etc.). If
neither of these do what you want you could (masochistically) try figuring
out exactly where you want all your ticks and use segments() to draw them.
Or, if what you need to do is suppress labels on the axes, you can use
ann=FALSE in plot (?plot.default).
You can also look at box(), par(bty), and par(xaxs), par(yaxs) for
information about where and how the axes are plotted. ?par contains an
enormous amount of information, but it's worth going through every so
often for ideas.
On Thu, 26 Oct 2000, Erin Hodgess wrote:
> 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?
> Thanks in advance!
> Erin M. Hodgess, Ph.D.
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> One Main Street
> Houston, TX 77002
> e-mail: hodgess at uhddx01.dt.uh.edu
> 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
318 Carr Hall bolker at zoo.ufl.edu
Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker
Box 118525 (ph) 352-392-5697
Gainesville, FL 32611-8525 (fax) 352-392-3704
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