Re: [R] Substitution in expressions

2019-03-26 Thread Viechtbauer, Wolfgang (SP)
Gunter [mailto:bgunter.4...@gmail.com] Sent: Tuesday, 26 March, 2019 17:43 To: Viechtbauer, Wolfgang (SP) Cc: r-help mailing list Subject: Re: [R] Substitution in expressions Perhaps something like this (apologies if beating a dead horse): plot(NA,NA, xlim = c(-1,5),ylim = c(-1,5), xlab = "&q

Re: [R] Substitution in expressions

2019-03-26 Thread Bert Gunter
cal expression, but ?plotmath doesn't > cover how to do such a vectorized substitution. > > Best, > Wolfgang > > -Original Message- > From: Bert Gunter [mailto:bgunter.4...@gmail.com] > Sent: Tuesday, 26 March, 2019 15:52 > To: Viechtbauer, Wolfgang (SP) > C

Re: [R] Substitution in expressions

2019-03-26 Thread Viechtbauer, Wolfgang (SP)
Cc: r-help mailing list Subject: Re: [R] Substitution in expressions I believe you're going about this the wrong way. You seem to want mathematical expressions. Fot this, see ?plotmath. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and

Re: [R] Substitution in expressions

2019-03-26 Thread Viechtbauer, Wolfgang (SP)
Ok, thanks. Happy to stick with mapply() then. Best, Wolfgang -Original Message- From: peter dalgaard [mailto:pda...@gmail.com] Sent: Tuesday, 26 March, 2019 15:40 To: Viechtbauer, Wolfgang (SP) Cc: r-help mailing list Subject: Re: [R] Substitution in expressions I think mapply() is

Re: [R] Substitution in expressions

2019-03-26 Thread Bert Gunter
I believe you're going about this the wrong way. You seem to want mathematical expressions. Fot this, see ?plotmath. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County"

Re: [R] Substitution in expressions

2019-03-26 Thread peter dalgaard
auer, Wolfgang (SP) > Cc: r-help mailing list > Subject: Re: [R] Substitution in expressions > > Er, I'm confused. > > You post some code, the code does something. In which sense is this not what > you want? > > This is slightly more direct: > >> mapply

Re: [R] Substitution in expressions

2019-03-26 Thread Viechtbauer, Wolfgang (SP)
, 2019 14:42 To: Viechtbauer, Wolfgang (SP) Cc: r-help mailing list Subject: Re: [R] Substitution in expressions Er, I'm confused. You post some code, the code does something. In which sense is this not what you want? This is slightly more direct: > mapply(function(x,y) as.expression(bq

Re: [R] Substitution in expressions

2019-03-26 Thread peter dalgaard
Er, I'm confused. You post some code, the code does something. In which sense is this not what you want? This is slightly more direct: > mapply(function(x,y) as.expression(bquote(.(x)^.(y))), base, expo) expression(1L^2, 2L^2, 3L^3, 4L^3, 5L^4) but I sense that you are looking for something el