[R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Rolf Turner
I would like to produce, as graphical annotation, the Greek letter sigma with a superscript of 2 and a subcript of 11. (I.e. the top left hand entry of a covariance matrix.) I've tried: plot(1:10,main=expression({sigma^2}[11])) (and variants). This "sort of" works but there is an undesirable

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Dr Eberhard W Lisse
They let you guys go to the pup again? :-)-O el On 09/12/2020 10:06, Rolf Turner wrote: [...] > Is there any way to achieve, with plotmath, an effect like unto that > produced by the LaTeX expression $\sigma^2_{11}$? Or should I just > give up and go to the pub? :-) [...] -- Dr. Eberhard W. Lis

Re: [R] ON the installation of: abnormally-distributed/cvreg

2020-12-09 Thread Rui Barradas
Hello, There are R versions 3.6.2 and 4.0.3 but no RStudio 4.0.3, the latest is RStudio 1.3.1093. To see the versions of R and RStudio you are using run R.version.string #[1] "R version 4.0.3 (2020-10-10)" RStudio.Version()$version #[1] ‘1.3.1093’ The following works with me: devtools::ins

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-09 Thread Martin Maechler
> Bert Gunter > on Tue, 8 Dec 2020 14:54:10 -0800 writes: > R and RStudio are separate products developed and > supported by separate organizations, although obviously > there is a large intersection between the > two. Nevertheless, if you think this is an RStudio rela

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Eric Berger
Hi Rolf, This is not addressing your implementation, but reformulates the goal. Specifically, the covariance matrix is normally written as \Sigma (not \sigma^2). So to specify the upper left element you would write (in Latex) \Sigma_{11}. No superscript (so no problem!) HTH, Eric On Wed, Dec 9,

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Duncan Murdoch
On 09/12/2020 3:06 a.m., Rolf Turner wrote: I would like to produce, as graphical annotation, the Greek letter sigma with a superscript of 2 and a subcript of 11. (I.e. the top left hand entry of a covariance matrix.) I've tried: plot(1:10,main=expression({sigma^2}[11])) (and variants). Thi

Re: [R] second legend in biplot

2020-12-09 Thread PIKAL Petr
Thank you Jim. biplot can have distinct colours of points and arrows but not points coded according to some factor. In simple example I provided, points are coded according by 2 factors. What I would like to achieve is to colour points and have their shapes coded by second factor, which fviz_pc

[R] svglite with multiple files

2020-12-09 Thread Heinz Tuechler
Dear All, while svg() (package grDevices) can produce several files, svglite() (package svglite) is limited to one file/page only (as documented in the respective help page). Is there a simple solution to make svglite() work like svg() to produce several files? Of course one could call svglite()

Re: [R] svglite with multiple files

2020-12-09 Thread Bert Gunter
Sigh... Per the posting guide (which you have read, right?): "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask questions on R-help.If the question relates to a *contribu

Re: [R] svglite with multiple files

2020-12-09 Thread Heinz Tuechler
Dear Bert, of course I have read the posting guide, almost two decades ago, but usually I focus on reading carefully a posting before replying. To be more precise, I did *not* ask about the svglite-package, as it works as described. My question was: "Is there a simple solution to make svglite() w

Re: [R] second legend in biplot

2020-12-09 Thread Jim Lemon
Hi Petr, Perhaps legendg in plotrix can help: legendg(-180,600,c("State","Crime"),lty=1,col=list("black","red"),pch=3:4) Jim On Wed, Dec 9, 2020 at 10:31 PM PIKAL Petr wrote: > > Thank you Jim. > > biplot can have distinct colours of points and arrows but not points coded > according to some fa

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Rolf Turner
On Wed, 9 Dec 2020 06:18:10 -0500 Duncan Murdoch wrote: > On 09/12/2020 3:06 a.m., Rolf Turner wrote: > > > > I would like to produce, as graphical annotation, the Greek letter > > sigma with a superscript of 2 and a subcript of 11. (I.e. the top > > left hand entry of a covariance matrix.) >

Re: [R] Subscript and superscript on one symbol; plotmath.

2020-12-09 Thread Duncan Murdoch
On 09/12/2020 6:45 p.m., Rolf Turner wrote: On Wed, 9 Dec 2020 06:18:10 -0500 Duncan Murdoch wrote: On 09/12/2020 3:06 a.m., Rolf Turner wrote: I would like to produce, as graphical annotation, the Greek letter sigma with a superscript of 2 and a subcript of 11. (I.e. the top left hand ent