Re: [R] Using text and variable in ggtitle (ggplot2)

2013-07-19 Thread Rainer Schuermann
Not sure whether I understand your question fully but I guess paste() is your friend: ggtitle( paste( "RR(overall) =", RR, "N =", N, "alpha =", alpha1 ) ) On Friday 19 July 2013 17:17:24 Manisha Brahma chary wrote: > Hello, > I am using ggplot2 to plot a graph and I want to give a title to the

[R] Using text and variable in ggtitle (ggplot2)

2013-07-19 Thread Manisha Brahma chary
Hello, I am using ggplot2 to plot a graph and I want to give a title to the plot that has both text and variables. I have tried a couple of ways, but none of the methods work. Below is my code. Under ggtitle RR, N, alpha1 are variables and "RR(overall), "N", "alpha" are strings. Require(ggplot2