I'm trying to create a forest plot using ggforestplot, but am receiving the error message:
Error in assertAndRetrieveTidyValue(x, mean) : argument "x" is missing, with no default
library(ggforestplot)
library(tidyverse)
library(magrittr)
df_linear <-
df_linear_associations %>%
dplyr::arrange(name) %>%
dplyr::filter(dplyr::row_number() <= 30)
# Forestplot
forestplot(
df = df_linear,
estimate = beta,
logodds = FALSE,
colour = trait,
xlab = "1-SD increment in cardiometabolic trait
per 1-SD increment in biomarker concentration"
)
