# \donttest{
library(dplyr)
if (requireNamespace("lme4", quietly = TRUE) & requireNamespace("lmerTest", quietly = TRUE)){
lmer_results <- olink_lmer(df = npx_data1,
variable=c("Time", 'Treatment'),
random = c('Subject'))
assay_list <- lmer_results %>%
filter(Threshold == 'Significant' & term == 'Time:Treatment') %>%
select(OlinkID) %>%
distinct() %>%
pull()
list_of_pointrange_plots <- olink_lmer_plot(df = npx_data1,
variable=c("Time", 'Treatment'),
random = c('Subject'),
x_axis_variable = 'Time',
col_variable = 'Treatment',
verbose=TRUE,
olinkid_list = assay_list,
number_of_proteins_per_plot = 10)
}
# }
Run the code above in your browser using DataLab