Potential GSoC Mentors,
R has applied as mentoring organization again this year for Google
Summer of Code 2021
(https://summerofcode.withgoogle.com/how-it-works/). While we won't
know for a while if we have been accepted, we hope that we will be
accepted again this year as we have been in past ye
FWIW, even in Rmarkdown images sometimes give trouble. However, there is the
possibilty
of asking to keep the latex version of the document after Rmarkdown has been
processed.
That is, in the yaml header there is the "output" section
output:
pdf_document:
keep_tex: false
toc: true
Her
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 plotmath in your
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 plotmath
> On Feb 18, 2021, at 2:03 PM, Robert Dodier wrote:
>
> EXTERNAL EMAIL:
>
> On Thu, Feb 18, 2021 at 10:12 AM Kevin Thorpe
> wrote:
>
>> I would think that it would be more seamless to use Rmarkdown.
>> Simply put the plotting code into an Rmarkdown file and send it
>> straight to Word. Is th
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
On Thu, Feb 18, 2021 at 10:12 AM Kevin Thorpe wrote:
> I would think that it would be more seamless to use Rmarkdown.
> Simply put the plotting code into an Rmarkdown file and send it
> straight to Word. Is there a reason why this is not a viable option?
Hi Kevin, thanks for your reply. Well, I
To be clear: I have tried none of this, and so cannot offer detailed useful
advice. Just passing along what I found (though I have done it with "atop"
in the dim, dark past). Let us know what works best for you if you find
something that does.
Bert Gunter
"The trouble with having an open mind is
Thank you for your suggestions. So you’re suggesting I bypass the ggplot symbol
parsing by passing a character string to caption which has latex2exp in it.
Good idea. So in this approach, I should break the string into new lines via
‘atop’?
Thanks
From: Bert Gunter
Sent: Thursday, February 18
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."
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://
I did not see the original thread so this may have been discussed.
I would think that it would be more seamless to use Rmarkdown.
Simply put the plotting code into an Rmarkdown file and send it
straight to Word. Is there a reason why this is not a viable option?
--
Kevin E. Thorpe
Head of Biosta
Hi, a quick follow-up about the question about putting R-generated
figures into MS Word.
I have found by experimenting with some figures and documents that if
I import an SVG figure generated by svglite (didn't try other output
functions), I can view it okay in my installation of MS Word (Word for
## 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
Right, Bert, but not if X is "only" matrix. ;-)
> X <- cbind(X1 = letters[1:3],
X2 = 5:7,
X3 = LETTERS[1:3]
)
> do.call(paste0, X)
Fehler in do.call(paste0, X) : das zweite Argument muss eine Liste sein
(Sorry, but my system is German. :-))
But, of course, then, e.g.,
do
Inline comment below.
Cheers,
Bert
Bert Gunter
"
or, if stored as columns of a matrix or data frame X, e.g.,
>
> ##
> apply(X, 1, paste0)
>
##
"
No. paste() is vectorized. apply() can be avoided:
> df <- data.frame(X1 = letters[1:3],
X2 = 5:7,
[I forgot to keep it on the list.]
Weitergeleitete Nachricht
Betreff: Re: [R] Concatenation?
Datum: Wed, 17 Feb 2021 22:14:13 +0100
Von: Gerrit Eichner
Organisation: JLU Gießen
An: Parkhurst, David
Hi David,
checkout, e. g., base-R's
paste0(site, depth)
or, if stored as co
How about paste?
site <- c('MU','MU','MU','MC','MC','MC')depth <-
c(0,1,2,0,1,2)paste(site, depth, sep="")
result:
[1] "MU0" "MU1" "MU2" "MC0" "MC1" "MC2"
On Wed, 2021-02-17 at 21:09 +, Parkhurst, David wrote:
> If I have a vector of site abbreviations and a vector of depths in
> those water bo
18 matches
Mail list logo