Displaying 2 results from an estimated 2 matches for "titletxt".
2001 May 07
2
Symbolic substitution of expressions into expressions
In the following
titletxt <- substitute(paste(tx, tilde(y) == sqrt(y)),
list(tx="Replace y by "))
I'd like to be able to replace e.g. sqrt(y) by a symbol or
symbolic expression that has the effect of inserting sqrt(y)
into the place that it occupies. This would allow me to put an
arbitrary expression in...
2004 Nov 11
5
expressions and paste
I have written a function to plot data which will be used for various different chemistries.
A simplified version is:
plot_data <- function(risk,levels,chem,sd2,measure){
plot(risk, levels,main=paste ("per", sd2, measure, "\n in usual", chem))
}
The problem is with the title.
This works fine if the variable "chem" is just text, but if it is an expression then