> Behalf Of David Winsemius
> Sent: Thursday, October 06, 2011 11:49 AM
> To: David Winsemius
> Cc: r-help@r-project.org; John Nolan
> Subject: Re: [R] Titles changing when a plot is redrawn
>
>
> On Oct 6, 2011, at 2:29 PM, David Winsemius wrote:
>
> >
> > On
05/2011 11:49PM
Cc: r-help@r-project.org
Subject: Re: [R] Titles changing when a plot is redrawn
I think the problem is your str1 is an unevaluated expression and
will
change with the value of i. You should be able to get a fixed title
by
this:
par(mfrow = c(2, 1))
for (i in 1:2) {
x
uated expression is not re-evaluated at draw time?
John
-xieyi...@gmail.com wrote: -
To: John Nolan
From: Yihui Xie
Sent by: xieyi...@gmail.com
Date: 10/05/2011 11:49PM
Cc: r-help@r-project.org
Subject: Re: [R] Titles changing when a plot is redrawn
I think the problem is your str1 is an uneval
I think the problem is your str1 is an unevaluated expression and will
change with the value of i. You should be able to get a fixed title by
this:
par(mfrow = c(2, 1))
for (i in 1:2) {
x <- 1:100
rmse <- sin(x/5) # fake data
plot(x, rmse, main = substitute(list(RMSE(theta), i == z),
I ran into a problem with titles on graphs. I wanted a graph with
multiple subplots, with each having a title that involved both
a Greek letter and an identifier for each graph. Below is a
simplified version of code to do this. The graph appears fine,
with the first graph having "i=1" in the ti
5 matches
Mail list logo