[R] Display Conditional Probabilities on y-label

Brian Phillip Weaver theguz at lanl.gov
Mon Jun 19 18:52:33 CEST 2006


I am trying to display a conditional probability for the y-label on a beta
distribution plot. Here is the code I have been using:

z = expression("f(x|")
g = paste(z,expression(alpha),",",expression(beta),")")

The output on the plot is as follows:

This is what I want except have the greek letters for alpha and beta
instead of the words.  I have consulted plotmath and other options with no
luck.  I appreciate any help and thank you ahead of time.


More information about the R-help mailing list