[R] Drawing Tangent
Martin Maechler
maechler at stat.math.ethz.ch
Sat Apr 28 19:09:45 CEST 2007
>>>>> "Arun" == Arun Kumar Saha <arun.kumar.saha at gmail.com>
>>>>> on Thu, 26 Apr 2007 23:44:03 +0530 writes:
Arun> Dear all R-users,
Arun> I would like to draw a tangent of a given function for a particular (given)
Arun> point. However the straight line representing it should not cut any axis, it
Arun> should be a small line. Can anyone tell me how to do this?
You will eventually call segments() to draw that short line.
par("usr") {and maybe e.g. par("pin")} will probably be relevant when
determining how long the line segment(s) should be.
Martin Maechler, ETH Zurich
More information about the R-help
mailing list