Re: [R] Displaying Equation With Numerator and Demomenator On A Plot...

2010-01-21 Thread Dennis Murphy
Hi: Try this: plot(c(0, 1), c(0, 1)) text(0.5, 0.5, expression(x == over(-b %+-% sqrt(b^2 - 4 * a * c), 2 * a))) I've found it useful to print out the different plotmath expressions: pdf('plotmath.pdf') demo(plotmath) dev.off() HTH, Dennis On Thu, Jan 21, 2010 at 2:10 PM, Jason Rupert wrote:

[R] Displaying Equation With Numerator and Demomenator On A Plot...

2010-01-21 Thread Jason Rupert
Is there a way to display something like the quadratic equation, i.e. with a numerator and demonator on a plot? I think there is a way to create the equation in Latex, but wasn't sure if this format would translate to plotting. \begin{equation}   x = \frac{b +/- sqrt(b^2 - 4*a*c)}{2*a} \end{eq