[R] inverted axis
maeder at atmos.umnw.ethz.ch
Wed Mar 20 13:12:18 CET 2002
make the first ploot as normal: plot(X, BR2)
and the second one with points: points(BR1, X, col='red')
perhaps you have to set xlim and ylim in plot, so that every point in
BR1 is shown
another aproach is:
I hope it help
Juhana Vartiainen wrote:
> Hello everybody!
> Spse I have the following
> X <- seq(1:100) #(a dim(100) sequence of integers 1:100 representing
> the possible actions of player 1 and player2 in a game)
> BR2X<- br2(X) #(a dim(100) sequence of points on range (1,100)
> representing the best response function of player 2 to player 1:s
> BR1X<- br1(X) #(a dim(100) sequence of points on range (1,100)
> representing the best response function of player 1 to player 2:s
> To illustrate Nash equilibrium , I would like to plot these in the same
> picture, with inverted axes, so that
> (X,BR2) is plotted with X on horizontal and BR2 on vertical axis
> (X, BR1) is plotted with X on vertical axis and BR1 on horizontal axis.
> How can I do that ?
> Juhana Vartiainen
> juhana.vartiainen at labour.fi
> 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
Joerg Maeder .:|:||:..:.||.:: maeder at atmos.umnw.ethz.ch
Tel: +41 1 633 36 25 .:|:||:..:.||.::
PhD student at INSTITUTE FOR ATMOSPHERIC AND CLIMATE SCIENCE (IACETH)
ETH ZÜRICH Switzerland
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