Skip to content
Prev 299984 / 398506 Next

how to add a variable to a graph title

Hi folks,

To simplify my question, consider an example:

x=runif(1,0,1)
plot(1:5,1:5)

Now I want to add a title to the above plot showing the vaue of x, so if the
generated x is 0.3, graphically the tile should be like "Figure 1: x=0.3".
How do I achieve this in R?

Thanks.
Jeff


--
View this message in context: http://r.789695.n4.nabble.com/how-to-add-a-variable-to-a-graph-title-tp4636364.html
Sent from the R help mailing list archive at Nabble.com.