Hi all, I wonder how to correctly write the following expression (it's the axis label in a plot command): ylab=expression(y' == y - bar(y) ) Somehow the single quote in y' is causing the problems, I guess because it is interpreted as a quote... Does it have to be escaped? But how? Thanks for your help Pascal
Pascal A. Niklaus wrote:> Hi all, > > I wonder how to correctly write the following expression (it's the axis > label in a plot command): > > ylab=expression(y' == y - bar(y) )expression(y * "'" == y - bar(y)) Uwe Ligges> Somehow the single quote in y' is causing the problems, I guess because > it is interpreted as a quote... > Does it have to be escaped? But how? > > Thanks for your help > > Pascal > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
"Pascal A. Niklaus" <Pascal.Niklaus at unibas.ch> writes:> Hi all, > > I wonder how to correctly write the following expression (it's the > axis label in a plot command): > > ylab=expression(y' == y - bar(y) ) > > Somehow the single quote in y' is causing the problems, I guess > because it is interpreted as a quote... > Does it have to be escaped? But how?y*minute or y*"'" should do it. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907