Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
egouldo committed Sep 4, 2024
1 parent 0655424 commit 49ebd32
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2623,24 +2623,24 @@ bt_complete_data <- ManyEcoEvo_viz %>%
) %>%
select(tidy_mod_summary) %>%
mutate(plot_data = map(tidy_mod_summary,
.f = ~ dplyr::mutate(.x, point_shape =
ifelse(stringr::str_detect(term, "overall"),
"diamond",
"circle"),
Parameter =
forcats::fct_reorder(term,
estimate) %>%
forcats::fct_reorder(.,
point_shape,
.desc = TRUE))
),
meta_analytic_mean = map_dbl(plot_data,
~ filter(.x, Parameter == "overall") %>%
pull(estimate))) %>%
select(plot_data, meta_analytic_mean) %>%
unnest(cols = c("plot_data")) %>%
mutate(parameter_type = case_when(str_detect(Parameter, "overall") ~ "mean",
TRUE ~ "study"))
.f = ~ dplyr::mutate(.x, point_shape =
ifelse(stringr::str_detect(term, "overall"),
"diamond",
"circle"),
Parameter =
forcats::fct_reorder(term,
estimate) %>%
forcats::fct_reorder(.,
point_shape,
.desc = TRUE))
),
meta_analytic_mean = map_dbl(plot_data,
~ filter(.x, Parameter == "overall") %>%
pull(estimate))) %>%
select(plot_data, meta_analytic_mean) %>%
unnest(cols = c("plot_data")) %>%
mutate(parameter_type = case_when(str_detect(Parameter, "overall") ~ "mean",
TRUE ~ "study"))
complete_euc_data <-
ManyEcoEvo_viz %>%
Expand All @@ -2650,16 +2650,16 @@ complete_euc_data <-
select(tidy_mod_summary) %>%
mutate(plot_data = map(tidy_mod_summary,
.f = ~ dplyr::mutate(.x,
point_shape =
ifelse(stringr::str_detect(term, "overall"),
"diamond",
"circle"),
Parameter =
forcats::fct_reorder(term,
estimate) %>%
forcats::fct_reorder(.,
point_shape,
.desc = TRUE))
point_shape =
ifelse(stringr::str_detect(term, "overall"),
"diamond",
"circle"),
Parameter =
forcats::fct_reorder(term,
estimate) %>%
forcats::fct_reorder(.,
point_shape,
.desc = TRUE))
),
meta_analytic_mean = map_dbl(plot_data,
~ filter(.x, Parameter == "overall") %>%
Expand Down Expand Up @@ -3028,7 +3028,7 @@ eucalyptus_yi_plot_data %>%
rename(study_id = term) %>%
ungroup %>%
plot_forest_2(MA_mean = T,y_zoom = c(0,150)) +
theme(axis.text.y = element_blank())
theme(axis.text.y = element_blank())
```
## Quantifying Heterogeneity
Expand Down

0 comments on commit 49ebd32

Please sign in to comment.