[R-meta] Bubble plot in regresion whith two variables

Gerta Ruecker ruecker @end|ng |rom |mb|@un|-|re|burg@de
Thu Nov 7 15:18:52 CET 2019


Dear Martin,

As Wolfgang wrote, you can do a bubble plot with a line using the 
bubble() function from the meta package. The help function for 
bubble()provides an example:

install.packages("meta")
library(meta)
data(Fleiss93cont)
# Add some (fictitious) grouping variables:
Fleiss93cont$age <- c(55, 65, 52, 65, 58)
Fleiss93cont$region <- c("Europe", "Europe", "Asia", "Asia", "Europe")
m1 <- metacont(n.e, mean.e, sd.e, n.c, mean.c, sd.c, data = 
Fleiss93cont, sm = "MD")
mr1 <- metareg(m1, region)
bubble(mr1, lwd = 2, col.line = "blue")

Best,

Gerta

Am 07.11.2019 um 15:12 schrieb Martin Lobo:
> Thank's Wolfgang.
>
>
> The bubble function of the target package only graphs the first variable and does not allow adding the adjustment line of the multivariate model. I don't know if it explains well to me, I need to add the model adjustment line with two variables. The example you have given me has not been able to adapt it to work with my data.
> Thank you
>
>
>
>
> Lorenzo Martín Lobo MTSAC, FACC, FESC
> Especialista Jerarquizado en Cardiología
> Jefe de Cardiología Hospital Militar Campo de Mayo
> Ex Jefe de Unidad Coronaria Hospital Militar Campo de Mayo
> Miembro Titular de la Sociedad Argentina de Cardiología
> Fellow American College of Cardiology
> Fellow European Society of Cardiology
> Miembro del Area de Investigación de la SAC
> Ex Director del Consejo de Aterosclerosis y Trombosis de la SAC
> Miembro Asesor del Consejo de Aterosclerosis y Trombosis de la SAC
> Ex Director del Consejo de Epidemiología y Prevención Cardiovascular de la SAC
>
> Miembro Asesor del Consejo de Epidemiología y Prevención Cardiovascular de la SAC
>
>
> Instructor de ACLS de la American Heart Association
>
>
> ________________________________
> De: Viechtbauer, Wolfgang (SP) <wolfgang.viechtbauer using maastrichtuniversity.nl>
> Enviado: jueves, 7 de noviembre de 2019 07:30
> Para: Martin Lobo <mlobo4370 using hotmail.com>; r-sig-meta-analysis using r-project.org <r-sig-meta-analysis using r-project.org>
> Asunto: RE: Bubble plot in regresion whith two variables
>
> Dear Martin,
>
> Code for creating a bubble plot is shown here:
>
> https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.metafor-project.org%2Fdoku.php%2Fplots%3Ameta_analytic_scatterplot&data=02%7C01%7C%7C11a3671d0f564901f35b08d7636d7e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637087194221209174&sdata=nGtd6sga5y2rIfgHEyilZQ7F%2FkCrRO6pBTdvT5RysF0%3D&reserved=0
>
> The 'meta' package also has a bubble() function for this.
>
> Best,
> Wolfgang
>
> -----Original Message-----
> From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On Behalf Of Martin Lobo
> Sent: Thursday, 07 November, 2019 1:43
> To: r-sig-meta-analysis using r-project.org
> Subject: [R-meta] Bubble plot in regresion whith two variables
>
> Hello everyone.
> I need to make a bubble plot of a goal of average differences with a covariate. And then add to it the line of adjustment of the model with 2 variables. Is this possible ?
> Thank you
>
> Lorenzo Mart�n Lobo MTSAC, FACC, FESC
> Especialista Jerarquizado en Cardiolog�a
> Jefe de Cardiolog�a Hospital Militar Campo de Mayo
> Ex Jefe de Unidad Coronaria Hospital Militar Campo de Mayo
> Miembro Titular de la Sociedad Argentina de Cardiolog�a
> Fellow American College of Cardiology
> Fellow European Society of Cardiology
> Miembro del Area de Investigaci�n de la SAC
> Ex Director del Consejo de Aterosclerosis y Trombosis de la SAC
> Miembro Asesor del Consejo de Aterosclerosis y Trombosis de la SAC
> Ex Director del Consejo de Epidemiolog�a y Prevenci�n Cardiovascular de la SAC
>
> Miembro Asesor del Consejo de Epidemiolog�a y Prevenci�n Cardiovascular de la SAC
>
> Instructor de ACLS de la American Heart Association
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-meta-analysis mailing list
> R-sig-meta-analysis using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis

-- 

Dr. rer. nat. Gerta Rücker, Dipl.-Math.

Institute of Medical Biometry and Statistics,
Faculty of Medicine and Medical Center - University of Freiburg

Stefan-Meier-Str. 26, D-79104 Freiburg, Germany

Phone:    +49/761/203-6673
Fax:      +49/761/203-6680
Mail:     ruecker using imbi.uni-freiburg.de
Homepage: https://www.imbi.uni-freiburg.de/persons/ruecker/person_view



More information about the R-sig-meta-analysis mailing list