[R] Plotmath isn't working for special characters

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Wed Jan 25 00:33:10 CET 2023


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 using 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 using usu.edu
> (435) 797-3229 (office)
>
> ______________________________________________
> R-help using 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]]



More information about the R-help mailing list