[R] Drawing Tangent
Greg.Snow at intermountainmail.org
Thu Apr 26 20:34:56 CEST 2007
There are several options depending on what exactly you want to do.
One option if you know the slope and intercept of your line is to use
the clipplot function from the TeachingDemos package with abline.
Or you could just choose 2 points on the tangent line and use either
lines or segments to connect the points.
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at intermountainmail.org
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Arun Kumar Saha
> Sent: Thursday, April 26, 2007 12:14 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Drawing Tangent
> Dear all R-users,
> I would like to draw a tangent of a given function for a
> particular (given) point. However the straight line
> representing it should not cut any axis, it should be a small
> line. Can anyone tell me how to do this?
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help