Re: [R] How to show a specific value of a ggplot2

2022-05-26 Thread Rui Barradas
Hello, If you cannot determine the exact value of y for given x, then isn't your problem how to determine an approximate value of y? Once you have it, it's easy to plot it. With newdata = data.frame(x = 75, y = ???), ggplot(mydata, mapping = aes(x, y)) + geom_point(color = "black") + ge

Re: [R] Use of ellipsis

2022-05-26 Thread Bert Gunter
Slight addendum. I would appreciate correction if anything I say is wrong. "I think this works because substitute() expands the ellipsis into its return value." That seems to be correct. ?substitute explicitly states: "Substitution takes place by examining each component of the parse tree as foll

[R] Use of ellipsis

2022-05-26 Thread Andreas Matre
Hello, I am trying to figure out the proper way to use ellipsis to pass arguments to child functions. I'm trying to create a wrapper function around stats::lm and lme4::lmer such that if the formula passed to the wrapper function contains a random effect it will fit a lme4::lmer model and if n

Re: [R] Error in forest.meta : argument 3 matches multiple formal arguments

2022-05-26 Thread Luigi Marongiu
Thank you On Thu, May 26, 2022 at 12:38 PM Ivan Krylov wrote: > > В Thu, 26 May 2022 12:30:12 +0200 > Luigi Marongiu пишет: > > > > Error in forest.meta(m10, sortvar = TE, predict = TRUE, print.tau2 > > > = TRUE, : > > argument 3 matches multiple formal arguments > > Look at help(forest.meta)

[R] Error in forest.meta : argument 3 matches multiple formal arguments

2022-05-26 Thread Luigi Marongiu
Hello, I am using the package meta to plot a forest plot. My data looks like this: ``` X Entry Cases Ca_pos Controls Co_pos Method Tissue Disease Virus Set 6 de Villiers, 200782 72 82 61PCR colon/rectum cancer TTV 3 7 de Villiers, 2002 162