Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
You th' barradas!!! -Original Message- From: Rui Barradas Sent: Thursday, February 18, 2021 2:10 PM To: Izmirlian, Grant (NIH/NCI) [E] ; r-help@r-project.org Subject: Re: [R] New line in caption with math symbols embedded in expression (paste( Hello, First of all the plotma

Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
This is beautiful. Thanks! G -Original Message- From: Rui Barradas Sent: Thursday, February 18, 2021 2:10 PM To: Izmirlian, Grant (NIH/NCI) [E] ; r-help@r-project.org Subject: Re: [R] New line in caption with math symbols embedded in expression (paste( Hello, First of all the

Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Rui Barradas via R-help
Hello, First of all the plotmath in your code doesn't need paste, expression alone will do it. I am not sure that the following is what you want. I create the caption beforehand, in order to make the plotting code simpler. The asterisks/tildes make less/more space between the text line's ele

Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Bert Gunter
ent:* Thursday, February 18, 2021 1:47 PM > *To:* Izmirlian, Grant (NIH/NCI) [E] > *Cc:* r-help@r-project.org > *Subject:* Re: [R] New line in caption with math symbols embedded in > expression (paste( > > > > See also this: > > > > > https://cran.r-project.or

Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
18, 2021 1:47 PM To: Izmirlian, Grant (NIH/NCI) [E] Cc: r-help@r-project.org Subject: Re: [R] New line in caption with math symbols embedded in expression (paste( See also this: https://cran.r-project.org/web/packages/latex2exp/vignettes/using-latex2exp.html Bert On Thu, Feb 18, 2021 at 10:42

Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Bert Gunter
See also this: https://cran.r-project.org/web/packages/latex2exp/vignettes/using-latex2exp.html Bert On Thu, Feb 18, 2021 at 10:42 AM Bert Gunter wrote: > Note, from ?plotmath: > > "Control characters (e.g., \n) are not interpreted in character strings in > plotmath, unlike normal plotting."

Re: [R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Bert Gunter
Note, from ?plotmath: "Control characters (e.g., \n) are not interpreted in character strings in plotmath, unlike normal plotting." For this reason, as best I can tell, you need to fool with plotmath's "atop" command or do separate "labs" calls. This post seems to confirm that opinion: https://

[R] New line in caption with math symbols embedded in expression (paste(

2021-02-18 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
## I am using ggplot and trying to produce a caption containing math symbols. I need to ## add a second line. I did a fair amount of googling for answers. This one seemed like ## it would answer my question as it is nearly exactly my problem, except there is only ## one argument to the paste fun