[R-meta] Meta package - Bubble plot subgroup colours
Gerta Ruecker
ruecker @ending from imbi@uni-freiburg@de
Tue Sep 11 10:54:53 CEST 2018
Thanks, Guido,
I should have checked the code first :-(
@Dirk: For gray colours, take Guido's code with c("darkgray",
"lightgray") or similar.
Best,
Gerta
Am 11.09.2018 um 10:50 schrieb Guido Schwarzer:
> Am 11.09.18 um 10:31 schrieb Gerta Ruecker:
>
>> [...]
>> Of course you may set colours as you like. For the given example, you
>> may write, e.g.,
>>
>> cols<- c("green","violet")
>
> This would result in a vector
>
> "green" "violet" "green" "violet" "green"
>
> instead of the (in this example) correct colours
>
> "violet" "violet" "green" "green" "violet"
>
> The following R command should do the trick:
>
> cols <- (Fleiss93cont$region == "Europe") + 1
> cols <- as.character(factor(cols, labels = c("green", "violet")))
>
>
> Best wishes,
> Guido
>
> _______________________________________________
> 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://portal.uni-freiburg.de/imbi/persons/ruecker?set_language=en
More information about the R-sig-meta-analysis
mailing list