search for: r2format

Displaying 1 result from an estimated 1 matches for "r2format".

2011 Oct 04
0
ggplot2: not displaying annotation (label = expression) in/on graph
...R^2 = value. However with the following code: ggplot(blData, aes(x = xData, y = yData)) + geom_point(aes(colour = factor(diagnosis))) + geom_smooth(method = "lm") + opts(legend.position = c(0.75, 0.25)) + scale_colour_discrete(name = "Diagnosis") + labs(x = r2format(t0.lm, output = "R^2 == rval", sub = "rval")) + #"Baseline - Automated", y = "Baseline - Manual") + annotate("text", x = 1.35, y = 2.5, label = r2format(t0.lm, output = "R^2 == rval", sub = "rval"))...