[R] (CAR) Scatterplot and problems (?) with abline
Joel Kincaid
jfkincaid at comcast.net
Mon Aug 26 19:26:28 CEST 2002
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list