Re: [R] expression() and plot title

2010-08-28 Thread David Winsemius
On Aug 28, 2010, at 4:48 PM, Sancar Adali wrote: My function is like this sim.res<-gaussian_simulation(p=3, r=4, q=3, c=0.1,d=2, Wchoice = "avg", pre.scaling = TRUE, oos = TRUE, alpha = NULL, n = 100, m = 100, nmc = 100) which is defined as gaussian_simulation <- function(p,

Re: [R] expression() and plot title

2010-08-28 Thread Sancar Adali
My function is like this sim.res<-gaussian_simulation(p=3, r=4, q=3, c=0.1,d=2, Wchoice = "avg", pre.scaling = TRUE, oos = TRUE, alpha = NULL, n = 100, m = 100, nmc = 100) which is defined as gaussian_simulation <- function(p, r, q, c, d

Re: [R] expression() and plot title

2010-08-27 Thread Cheng Peng
Try this: > LinePlot(1,1) > LinePlot=function(a,b){ + # a = slope + # b = y intercept + x=seq(-10,10,0.4) + y=a*x+b + plot(x,y, type="l") + title(paste("a=",a,"b=",b)) + } > > #test > LinePlot(a=-2,b=9) HTH -- View this message in context: http://r.789695.n4.nabble.com/expression-and-plot-t

Re: [R] expression() and plot title

2010-08-27 Thread Bill.Venables
:r-help-boun...@r-project.org] On Behalf Of Sancar Adali Sent: Saturday, 28 August 2010 2:54 PM To: r-help Subject: [R] expression() and plot title What I want to do is put the arguments I supply to a function into the title of a plot Say I'm calling func.1 func.1(a=4,b=4) plot(,..., tit

Re: [R] expression() and plot title

2010-08-27 Thread David Winsemius
On Aug 28, 2010, at 12:53 AM, Sancar Adali wrote: What I want to do is put the arguments I supply to a function into the title of a plot Say I'm calling func.1 func.1(a=4,b=4) plot(,..., title("a=4, b=4")) If I'm calling func.1 with different arguments, I want the plot title to refl

[R] expression() and plot title

2010-08-27 Thread Sancar Adali
What I want to do is put the arguments I supply to a function into the title of a plot Say I'm calling func.1 func.1(a=4,b=4) plot(,..., title("a=4, b=4")) If I'm calling func.1 with different arguments, I want the plot title to reflect that. A small detail is that func.1 might have an argumen