Brief introductionRecent advances in meta analysis, such as mixed effects and structural equation models, allow ecologists to tackle increasingly more complex questions. Visualizing these results, however, is not straightforward. In a previous post, I described how to set up the data set and how to analyse it using a meta-analytical mixed-effects model. Here, I will briefly show how to graph results of bi-variate random effects model using ggplot2 and metafor. I strongly recommend that users thoroughly read Wolfgang Viechtbauer’s web site on meta-analysis in R, which has a lot of useful information about common problems in meta-analysis. For graphing results from ‘normal’ mixed effects models check out a) Ben bolker’s FAQ and b) Lionel Hertzog’s blog Getting startedInstall and then load packages:
For this tutorial, we’ll be using data from the Curtis database on plant responses to elevated C02. To save space and not to replicate code from the previous post, I’ve uploaded the data to Dropbox Load the data
Fit candidate models
Model summary
Set up the prediction matrixThis step creates a data frame with predicted values from the random effects model,
Make the graph!One of the nice features about the ‘predict’ function in metafor is that it allows for plotting either confidence intervals or prediction intervals
Additional thoughts One can also graph separate lines and adjust other parameters , e.g.,point size, shape, and color,
Here’s an example:
To select colors that will look good on a printed page, check out Colorbrewer2 To adjust shapes and linetypes, check out this the R cookbook Adjust ggplot2 theme parameters
The size and resolution can be adjusted to make publication-quality figures
Now admire your hardwork!
Dylan
20/7/2015 11:17:33 pm
Sorry for the ugly formatting. I learned today that inserting html from R markdown does not always turn out pretty. If you can see past the ugliness, let me know if you have any questions! 5/9/2022 09:37:44 am
Really informative article, I had the opportunity to learn a lot, thank you. https://freecodezilla.net/free-download-learndash-lms-nulled/ 14/9/2022 04:02:11 pm
Really informative article, I had the opportunity to learn a lot, thank you. https://bit.ly/site-kurma 30/9/2022 06:15:24 am
It's great to have this type of content. Good luck with your spirit. Thank you. https://bit.ly/site-kurma 4/10/2022 01:45:37 pm
I think this post is useful for people. It has been very useful for me. Looking forward to the next one, thank you. https://escortnova.com/escort-ilanlari/izmir-escort/bayrakli-escort/ 5/10/2022 03:59:17 am
It was a post that I found very successful. Good luck to you. https://escortnova.com/escort-ilanlari/sirnak-escort/ 5/10/2022 02:57:35 pm
I follow your posts closely. I can find it thanks to your reliable share. Thank you. https://escortnova.com/escort-ilanlari/trabzon-escort/uzunkopru-escort/ 6/10/2022 09:26:02 am
I support your continuation of your posts. I will be happy as new posts come. Thank you. https://escortnova.com/escort-ilanlari/bitlis-escort/guroymak-escort/ 8/10/2022 12:13:49 am
Thank you for your sharing. I must say that I am successful in your content. https://escortnova.com/escort-ilanlari/konya-escort/aksehir-escort/ 22/11/2022 08:51:42 am
Sitemizi ziyaret et ve evden is imkanina bak: https://sites.google.com/view/evden-ek-is/ 10/12/2022 07:14:04 am
Düşmeyen bot takipçi satın al: https://takipcialdim.com/ 10/12/2022 09:33:45 am
Tiktok takipçi satın almak için tıkla: https://takipcialdim.com/tiktok-takipci-satin-al/ 16/12/2022 03:42:54 am
takipçi satın al ve sitemizi ziyaret et: https://takipcim.com.tr/ 19/12/2022 10:15:01 pm
İnstagram takipçi satın almak istiyorsan tıkla. 5/1/2023 05:27:27 am
100 tl deneme bonusu veren siteleri öğrenmek istiyorsan tıkla. Comments are closed.
|