[R] (CAR) Scatterplot and problems (?) with abline

About this list Date view Thread view Subject view Author view Attachment view

From: Joel Kincaid (jfkincaid@comcast.net)
Date: Tue 27 Aug 2002 - 03:26:28 EST


Message-id: <001b01c24d25$b6a21740$a8492244@salsbr01.md.comcast.net>

Network Blitz
I'm trying to generate a graph to summarize Interest Rate Parity. This
involves a scatterplot of x against y where the x and y limits are set
so to center the graph on 0,0 and then adding each axis line and a 45
degree line. Using CAR's scatterplot (sample code below) everything
except the axes plot fine:

scatterplot( Interest.Rate.Dif ~ ForPrm| profit,
xlim=c(-1,1),ylim=c(-1,1))
abline(0,1)
abline(v=0)
abline(h=0).
The problem is that the vertical (horz) line lies aprox 3% below (to the
left) of the 'zero' tick (or perhaps the zero tick lies above the zero
point). My intution is that there are multiple coordnet systems, but who
knows....
Any insights, suggestions etc, are welcome,
cheers,
Joel Kincaid,
Asst. Prof of Economics,
Salisbury University,
Salisbury MD USA

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:11 EST