Re: [R] graphics useRaster check_irregular definition for date or posix

2021-04-15 Thread Paul Murrell
Hi On 15/04/21 7:27 pm, cda...@posteo.de wrote: Hi Paul Thanks for the FAQs related to the unwanted white lines. However, even if it is just the png/pdf viewer that causes the white lines, I would like to try to avoid them as much as possible, and setting useRaster to true does that.

Re: [R] Bug? Index output of C functions R_qsort_I and R_qsort_int_I is not modified

2021-04-15 Thread Bill Dunlap
R_ext/Utils.h:void R_qsort_int_I(int *iv, int *II, int i, int j); The last 2 arguments are int, not int*. .C() passes pointers to vectors so you cannot call this function directly from .C(). -Bill On Thu, Apr 15, 2021 at 3:15 PM Evangelos Evangelou via R-help < r-help@r-project.org> wrote: >

[ESS] Announcing ‘Introductions to Emacs Speaks Statistics'

2021-04-15 Thread Dirk Eddelbuettel via ESS-help
(This is a text-only, no-links copy of what I just put onto my blog at http://dirk.eddelbuettel.com/blog/2021/04/15#announcing_ess_intros where you find it with links. The key site is https://ess-intro.github.io.) Announcing ‘Introductions to Emacs Speaks Statistics’ A new website containing

Re: [R] geom_node_point color in ggraph

2021-04-15 Thread Wolfgang Grond
Rui, thanks a lot, I'll try it this way. Best regards Wolfgang Am 15. April 2021 21:19:27 MESZ schrieb Rui Barradas : >Hello, > >To define the colors, remove the data set name from the aesthetic. >This > >aes(colour = project_all$Acronym) > > >should be this > >aes(colour = Acronym) > > >Then

[R] Bug? Index output of C functions R_qsort_I and R_qsort_int_I is not modified

2021-04-15 Thread Evangelos Evangelou via R-help
Hi all. Reading the documentation of these two functions https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Utility-functions "The ..._I() versions also return the sort.index() vector in I." I can't find anything in the documentation about sort.index(), but I'm guessing that I is the

Re: [R] graphics useRaster check_irregular definition for date or posix

2021-04-15 Thread cdanek
Hi Paul Thanks for the FAQs related to the unwanted white lines. However, even if it is just the png/pdf viewer that causes the white lines, I would like to try to avoid them as much as possible, and setting useRaster to true does that. My wish would be that I can use a date or POSIX* vector as

[R] Is R supported on Virtual Infrastructure environment?

2021-04-15 Thread Felyn Tay
Good Morning! I would like to find out whether there is any documentation or anyone has experience running R on Virtual Infrastructure Environment, particularly VMWare Horizon. Thank you! Felyn [[alternative HTML version deleted]] __

Re: [R] geom_node_point color in ggraph

2021-04-15 Thread Rui Barradas
Hello, To define the colors, remove the data set name from the aesthetic. This aes(colour = project_all$Acronym) should be this aes(colour = Acronym) Then choose the colours in the usual ggplot way. Here is a reproducible example. library(igraph) library(ggraph) project_all <-

Re: [R] Weighted violin chart

2021-04-15 Thread Mahmood Naderan-Tahan
Correct. This one p <- ggplot(mydata, aes(x=V3, y=V1, weight=V2)) + geom_violin(trim=FALSE) works fine. Thank you very much. Regards, Mahmood From: Duncan Murdoch Sent: Thursday, April 15, 2021 5:24:04 PM To: Mahmood Naderan-Tahan; r-help@r-project.org

Re: [R] Weighted violin chart

2021-04-15 Thread Duncan Murdoch
On 15/04/2021 11:07 a.m., Mahmood Naderan-Tahan wrote: It seems that using weight in ggplot has no effect. Also, using weight parameter in geom_violin results in an error. mydata V1 V2 V3 P1 73.6 5 R P2 75.2 5 R P3 6.5 60 R P4 41.4 15 C P5 5.4 5 C P6 18.8 10 C p <-

Re: [R] Weighted violin chart

2021-04-15 Thread Mahmood Naderan-Tahan
It seems that using weight in ggplot has no effect. Also, using weight parameter in geom_violin results in an error. > mydata V1 V2 V3 P1 73.6 5 R P2 75.2 5 R P3 6.5 60 R P4 41.4 15 C P5 5.4 5 C P6 18.8 10 C > p <- ggplot(mydata, aes(x=V3, y=V1)) + geom_violin(trim=FALSE) > p >

[R] geom_node_point color in ggraph

2021-04-15 Thread Wolfgang Grond
Dear all, I'm joining differnts graphs to one with command graph_join from ggraph, and try to color the nodes depending on the subgraph they come from. To do that, I have these commands in my ggraph: ... geom_node_point(size = 8, aes(colour

Re: [R] Weighted violin chart

2021-04-15 Thread Jeff Newmiller
Not strictly on topic on this list (ggplot2 is a contributed package) but... ggplot(mydata, aes(x=V3, y=V1, weight=V2 )) + geom_violin(trim=FALSE) If you want to refer to variables in the data, they have to be listed in the mapping. On April 15, 2021 7:01:45 AM PDT, Mahmood Naderan-Tahan

Re: [R] Weighted violin chart

2021-04-15 Thread Mahmood Naderan-Tahan
Hi again, As a follow up, does anybody know how to fix the following error? It seems that I can use a "weight" parameter in geom_violin, but I am able to figure out what is the problem with the following code. > library(ggplot2) > mydata <- read.csv('test.csv', header=T,row.names=1) >

Re: [R] mgcv::gam() scale parameter estimates for quasibinomial error models

2021-04-15 Thread Simon Wood
Thanks John. It's a bug in weights handling. mgcv will give wrong scale parameter estimates for weighted models where the scale parameter is unknown, (except Gaussian, fortunately). quasibinomial with trials > 1 is one such case, because the weights are used to store the number of trials.