[R] Plot math symbol with string and number
Rasmus Liland
jr@| @end|ng |rom po@teo@no
Mon Aug 17 23:40:46 CEST 2020
On 2020-08-17 22:14 +0100, cpolwart using 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:
|
| 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", "\u03C3=", s))
Good; for me copying the sigma unicode
character into that line works too:
plot(y, main=paste("dataσ=", s))
How curious
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200817/96989127/attachment.sig>
More information about the R-help
mailing list