Also works for me on a Mac Ventura in the RStudio graphics device. Just for the heckuva it, does plot(1,1,main= quote( x >= y )) work? I shouldn't think so, but ... Cheers, Bert On Tue, Jan 24, 2023 at 1:43 PM David Stevens <david.stevens at usu.edu> wrote:> Simple expressions on plots, such as parse(text='x >= y') have been > resulting in just a placeholder box (x box y and not the symbol) in my R > plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but > <= and >= have this behavior. > > plot(1,1,main=parse(text="x >= y")) > > Has anyone else seen this? > > best > > David > > -- > David K Stevens, PhD, PE, Professor > Civil and Environmental Engineering > Utah Water Research Laboratory > Utah State University > 8200 Old Main Hill > Logan, UT 84322-8200 > david.stevens at usu.edu > (435) 797-3229 (office) > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
plot(1,1, main=quote(x>=y)) produces the symbol for me. plot(1,1, main=parse(text="x>=y")) also produces the symbol. setting value version R version 4.2.2 Patched (2022-11-10 r83330) os Ubuntu 22.04.1 LTS system x86_64, linux-gnu ui X11 language en_NZ:en collate en_NZ.iso88591 ctype en_NZ.iso88591 tz Pacific/Auckland date 2023-01-25 pandoc 2.9.2.1 @ /usr/bin/pandoc - Packages ------------------------------------------------------------------- package * version date (UTC) lib source cli 3.4.1 2022-09-23 [1] CRAN (R 4.2.2) sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.2.2) [1] /home/ok/R/x86_64-pc-linux-gnu-library/4.2 [2] /usr/local/lib/R/site-library [3] /usr/lib/R/site-library [4] /usr/lib/R/library On Wed, 25 Jan 2023 at 12:34, Bert Gunter <bgunter.4567 at gmail.com> wrote:> Also works for me on a Mac Ventura in the RStudio graphics device. Just for > the heckuva it, does > plot(1,1,main= quote( x >= y )) > work? I shouldn't think so, but ... > > Cheers, > Bert > > > > On Tue, Jan 24, 2023 at 1:43 PM David Stevens <david.stevens at usu.edu> > wrote: > > > Simple expressions on plots, such as parse(text='x >= y') have been > > resulting in just a placeholder box (x box y and not the symbol) in my R > > plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but > > <= and >= have this behavior. > > > > plot(1,1,main=parse(text="x >= y")) > > > > Has anyone else seen this? > > > > best > > > > David > > > > -- > > David K Stevens, PhD, PE, Professor > > Civil and Environmental Engineering > > Utah Water Research Laboratory > > Utah State University > > 8200 Old Main Hill > > Logan, UT 84322-8200 > > david.stevens at usu.edu > > (435) 797-3229 (office) > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
A more extensive test (no=produced an empty box on the plot, yes=produced the intended plotmath result). It appears that plotmath is not producing the special math characters. Greek symbols are produced. I'll try to reinstall R and report back. David plot(1,1, main = parse(text = "x >= y")) - no plot(1,1, main = parse(text = "x == y")) - yes plot(1,1, main = parse(text = "x <= y")) - no plot(1,1, main = parse(text = "x ~ y")) - yes plot(1,1, main = parse(text = "x * y")) - yes plot(1,1, main = parse(text = "x %~~% y")) - no plot(1,1, main = bquote(x %~~% y)) - no plot(1,1, main = bquote(x %prop% y)) - no plot(1,1, main = expression(x %prop% y)) - no plot(1,1, main = expression(x == y)) - yes plot(1,1, main = expression(x %+-% y)) - no plot(1,1, main = expression(integral(f(x)*dx, a, b))) - no plot(1,1, main = expression(sum(x[i], i==1, n))) - no plot(1,1, main = expression(x^(y + z))) - yes plot(1,1, main = expression(inf(x))) - no plot(1,1, main = expression(x[(y + z)])) - yes David K Stevens, PhD, PE, Professor Civil and Environmental Engineering Utah Water Research Laboratory Utah State University 8200 Old Main Hill Logan, UT 84322-8200 david.stevens at usu.edu<mailto:david.stevens at usu.edu> (435) 797-3229 (office) On 1/24/2023 3:33 PM, Bert Gunter wrote: Also works for me on a Mac Ventura in the RStudio graphics device. Just for the heckuva it, does plot(1,1,main= quote( x >= y )) work? I shouldn't think so, but ... Cheers, Bert On Tue, Jan 24, 2023 at 1:43 PM David Stevens <david.stevens at usu.edu<mailto:david.stevens at usu.edu>> wrote: Simple expressions on plots, such as parse(text='x >= y') have been resulting in just a placeholder box (x box y and not the symbol) in my R plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but <= and >= have this behavior. plot(1,1,main=parse(text="x >= y")) Has anyone else seen this? best David -- David K Stevens, PhD, PE, Professor Civil and Environmental Engineering Utah Water Research Laboratory Utah State University 8200 Old Main Hill Logan, UT 84322-8200 david.stevens at usu.edu<mailto:david.stevens at usu.edu> (435) 797-3229 (office) ______________________________________________ R-help at r-project.org<mailto:R-help at r-project.org> mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]