Skip to content
Prev 299189 / 398506 Next

function curve() swap axes

On 05/07/2012 8:34 AM, Boudewijn Verkooijen wrote:
curve() is designed for plotting y vs x where y is a function of x, so I 
think you need to do it yourself.  Simply compute a vector of "a" values 
using seq(), compute the corresponding Q values using your formula, and 
then use

plot(Q, a, type="l")

You can add the lwd and other arguments too if you like.

Duncan Murdoch