Hi all,

I want to graph a curve as a function of mu, not x.

Here's the R code:

x <- rnorm(10)
y <- rnorm(10)

func <- function(x, y, mu){
   x + y + mu ^ 2
}

curve(f = func(x = x, y = y, mu), from = 0, to = 10)
I know I can change variable mu to x, but is there a way to tell R that mu
is the variable of interest, not x.

Thanks in advance,

Mike

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to