We now explore how effect sizes (yi) and their variances (vi) differ across study categories (subject, humanities).
maccann2020$country <- as.factor(maccann2020$country)
# Plot object
plot3d <- plot_ly(
data = maccann2020, x = ~n, y = ~country,
z = ~yi, color = ~country,
colors = c("steelblue", "tomato", "darkorange", "forestgreen", "purple"),
type = "scatter3d", mode = "markers",
marker = list(size = 4, opacity = 0.8)
) %>% layout(
scene = list(
xaxis = list(title = "Number of Observations"),
yaxis = list(title = "Country"),
zaxis = list(title = "Effect Size (yi)")
),
title = "3D Scatter Plot: Effect Size across Countries and Observation Count"
)