Hello,
I have to do a few graphics of the same function and this function is
parametrized by two arguments.
What I would like is to be able to change the value of these two arguments
without changing the plot command. So as to copy paste.
I tried the following :
x=1:100
eta=10
beta=5
plot(x,h(x),xlab="x",ylab="h(x)",main=substitute( expression( paste("Failure
rate from",W(eta==myeta,beta==mybeta) ) ) ,list(myeta=eta,mybeta=beta) )
)
But it doesn't work. It's written "expression ( Failure rate from W(eta=10,)
..." on the plot with eta as a greek letter.
Thank you very much !
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
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.