Re: [R] Plot math symbol with string and number

2020-08-18 Thread Rasmus Liland
On 2020-08-18 11:02 +1200, Paul Murrell wrote: | On 18/08/20 9:54 am, Bert Gunter wrote: | | On Mon, Aug 17, 2020 at 2:14 PM wrote: | | | | | | Plotmath seems to be the right way | | | to do it. But without reading | | | plotmath I'd have gone with this: | | | | | | plot(y, main=paste("data",

Re: [R] Plot math symbol with string and number

2020-08-17 Thread Paul Murrell
I think that comment is fair *on graphics devices that can handle unicode*. So that is true for Cairo-based graphics devices, but not for the pdf() or postscript() devices, for example. Paul On 18/08/20 9:54 am, Bert Gunter wrote: "Plotmath seems to be the right way to do it." Not sure I

Re: [R] Plot math symbol with string and number

2020-08-17 Thread Bert Gunter
"Plotmath seems to be the right way to do it. " Not sure I agree with that. Paul Murrell put together plotmath around 2000 prior to the widescale development and adoption of the unicode standard (corrections/modifications welcome!). So at the time, there really was no other way to handle this for

Re: [R] Plot math symbol with string and number

2020-08-17 Thread Rasmus Liland
On 2020-08-17 22:14 +0100, cpolw...@chemo.org.uk wrote: | On 2020-08-17 03:13, Rasmus Liland wrote: | | On Sun, Aug 16, 2020 at 3:18 PM Bert wrote: | | | | | | ?plotmath | | | | Dear John, read ?plotmath, it is | | good, I was not aware of its | | existence; then backquote s like | | so: | | P

Re: [R] Plot math symbol with string and number

2020-08-17 Thread cpolwart
On 2020-08-17 03:13, Rasmus Liland wrote: On Sun, Aug 16, 2020 at 3:18 PM Bert wrote: | On Sun, Aug 16, 2020, 14:53 John wrote: | | | | I would like to make plots with | | titles for different data sets and | | different parameters. The first | | title doesn't show sigma as a math | | symbol, whi

Re: [R] Plot math symbol with string and number

2020-08-17 Thread John Smith
Thanks to Dunkan, Rasmus and Bert. Will keep the very useful tips. Best! On Sun, Aug 16, 2020 at 9:13 PM Rasmus Liland wrote: > On Sun, Aug 16, 2020 at 3:18 PM Bert wrote: > | On Sun, Aug 16, 2020, 14:53 John wrote: > | | > | | I would like to make plots with > | | titles for different data sets

Re: [R] Plot math symbol with string and number

2020-08-16 Thread Rasmus Liland
On Sun, Aug 16, 2020 at 3:18 PM Bert wrote: | On Sun, Aug 16, 2020, 14:53 John wrote: | | | | I would like to make plots with | | titles for different data sets and | | different parameters. The first | | title doesn't show sigma as a math | | symbol, while the second one | | doesn't contain

Re: [R] Plot math symbol with string and number

2020-08-16 Thread Bert Gunter
Specifically, see the "how to combine "math" and numeric variables" in the Examples therein. 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" comic strip ) On Sun, Aug 16, 2020 a

Re: [R] Plot math symbol with string and number

2020-08-16 Thread Bert Gunter
?plotmath On Sun, Aug 16, 2020, 14:53 John Smith wrote: > Dear Helpers, > > I would like to make plots with titles for different data sets and > different parameters. So a useful title should combine data name > and parameter for clarity. The following is a simplified code example with > two plo

[R] Plot math symbol with string and number

2020-08-16 Thread John Smith
Dear Helpers, I would like to make plots with titles for different data sets and different parameters. So a useful title should combine data name and parameter for clarity. The following is a simplified code example with two plots. The first title doesn't show sigma as a math symbol, while the sec