Created
July 20, 2018 14:34
-
-
Save peterdalle/f79953d3c4d92a832fd93fccc3aa54d4 to your computer and use it in GitHub Desktop.
Density plot of effect sizes from social psychology and communication science
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
df <- read.csv("https://raw.githubusercontent.com/peterdalle/effectsizes/master/soc-psych.tsv", | |
header=TRUE, sep="\t", stringsAsFactors=FALSE) | |
df.comm <- read.csv("https://raw.githubusercontent.com/peterdalle/effectsizes-comm/master/effectsizes.csv", | |
header=TRUE, sep=",", stringsAsFactors=FALSE) | |
ggplot() + | |
geom_density(aes(df$r), fill="red", alpha=0.3) + | |
geom_density(aes(df.comm$r), fill="blue", alpha=0.3) + | |
scale_x_continuous(breaks=seq(0, 1, 0.1), limits=c(0, 1)) + | |
labs(title="Meta-analytic effect sizes from communication research (blue) and social psychology (red)", | |
x="Effect size (r)", y="Density") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment