Skip to content

Commit 667d473

Browse files
new depict and other mthds
1 parent 2096413 commit 667d473

26 files changed

Lines changed: 604 additions & 222 deletions

CITATION.cff

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cff-version: 1.2.0
2+
message: "Matthew Hamilton and Caroline Gao (2022). specific: Specify Candidate Models for Representing Mental Health Systems. Version 0.0.0.9073. Zenodo. https://doi.org/10.5281/zenodo.5768689"
3+
authors:
4+
- family-names: "Hamilton"
5+
given-names: "Matthew"
6+
- family-names: "Gao"
7+
given-names: "Caroline"
8+
title: "specific: Specify Candidate Models for Representing Mental Health Systems"
9+
version: 0.0.0.9073
10+
doi: 10.5281/zenodo.5768689
11+
date-released: 2022-02-15
12+
url: "https://ready4-dev.github.io/specific/"

DESCRIPTION

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,15 @@ Collate:
119119
'pkg_specific.R'
120120
'specific-package.R'
121121
Suggests:
122-
scorz,
123-
rmarkdown
124-
Remotes:
122+
scorz (>= 0.0.0.9048),
123+
rmarkdown,
124+
betareg,
125+
cmdstanr (>= 0.4.0.9000),
126+
rstan
127+
Remotes:
125128
ready4-dev/ready4,
126129
ready4-dev/ready4show,
127130
ready4-dev/ready4use,
128-
ready4-dev/youthvars
131+
ready4-dev/youthvars,
132+
stan-dev/cmdstanr,
133+
ready4-dev/scorz

NAMESPACE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ importFrom(caret,R2)
263263
importFrom(caret,RMSE)
264264
importFrom(caret,createFolds)
265265
importFrom(cowplot,draw_image)
266+
importFrom(cowplot,get_legend)
266267
importFrom(cowplot,ggdraw)
267268
importFrom(cowplot,plot_grid)
268269
importFrom(cowplot,save_plot)
@@ -316,8 +317,10 @@ importFrom(hutils,longest_prefix)
316317
importFrom(kableExtra,add_header_above)
317318
importFrom(kableExtra,collapse_rows)
318319
importFrom(kableExtra,column_spec)
320+
importFrom(kableExtra,footnote)
319321
importFrom(kableExtra,kable_styling)
320322
importFrom(kableExtra,kbl)
323+
importFrom(kableExtra,row_spec)
321324
importFrom(knitr,include_graphics)
322325
importFrom(knitr,knit_child)
323326
importFrom(knitr,knit_expand)
@@ -435,6 +438,8 @@ importFrom(xfun,numbers_to_words)
435438
importFrom(youthvars,add_interval_var)
436439
importFrom(youthvars,add_participation_var)
437440
importFrom(youthvars,make_corstars_tbl_xx)
441+
importFrom(youthvars,make_sub_tot_plts)
442+
importFrom(youthvars,make_var_by_round_plt)
438443
importFrom(youthvars,transform_ds_for_tstng)
439444
importFrom(youthvars,transform_ds_with_rename_lup)
440445
importFrom(youthvars,transform_tb_for_merged_col_1)

R/fn_make.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,9 @@ make_cmpst_sctr_and_dnst_plt <- function (outp_smry_ls, output_data_dir_1L_chr =
343343
cowplot::draw_image(.x))
344344
}
345345
else {
346-
plot_ls <- outp_smry_ls$mdl_nms_ls %>% purrr::flatten_chr() %>%
347-
mdl_idxs_int[] %>% purrr::map(~{
346+
plots_chr <- outp_smry_ls$mdl_nms_ls %>% purrr::flatten_chr()
347+
plots_chr <- plots_chr[mdl_idxs_int]
348+
plot_ls <- plots_chr %>% purrr::map(~{
348349
mdl_nm_1L_chr <- .x
349350
brms_mdl <- get_brms_mdl(outp_smry_ls, mdl_nm_1L_chr = mdl_nm_1L_chr)
350351
if (is.na(depnt_var_desc_1L_chr)) {

R/fn_print.R

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ print_all_plts_for_mdl_set <- function (output_ls, start_from_1L_int = 0L)
2323
#' @return NULL
2424
#' @rdname print_cohort_table
2525
#' @export
26-
#' @importFrom dplyr mutate mutate_all
26+
#' @importFrom dplyr mutate filter mutate_all
2727
#' @importFrom purrr map_chr
2828
#' @importFrom Hmisc capitalize
2929
#' @importFrom stringr str_replace
@@ -37,6 +37,7 @@ print_cohort_table <- function (params_ls, caption_1L_chr, mkdn_tbl_ref_1L_chr)
3737
df <- results_ls$tables_ls$participant_descs
3838
df$variable <- gsub("\\s*\\([^\\)]+\\)", "", df$variable)
3939
df <- df %>% dplyr::mutate(variable = variable %>% purrr::map_chr(~Hmisc::capitalize(.x)))
40+
df <- dplyr::filter(df, !df[, 3] == "")
4041
if (params_ls$output_type_1L_chr == "PDF") {
4142
df <- df %>% dplyr::mutate_all(~stringr::str_replace(.x,
4243
"%", "\\\\%") %>% stringr::str_replace(",", "\\\\,"))
@@ -137,7 +138,9 @@ print_covar_ttu_tbls <- function (params_ls, caption_1L_chr, table_1L_chr, ref_1
137138
#' @rdname print_indpnt_predrs_coefs_tbl
138139
#' @export
139140
#' @importFrom stringr str_replace_all
140-
#' @importFrom purrr map_chr
141+
#' @importFrom dplyr mutate across case_when
142+
#' @importFrom kableExtra kbl kable_styling column_spec row_spec add_header_above collapse_rows footnote
143+
#' @importFrom knitr opts_current
141144
#' @importFrom ready4show print_table
142145
print_indpnt_predrs_coefs_tbl <- function (params_ls, caption_1L_chr, mkdn_tbl_ref_1L_chr)
143146
{
@@ -159,14 +162,31 @@ print_indpnt_predrs_coefs_tbl <- function (params_ls, caption_1L_chr, mkdn_tbl_r
159162
"\\\\textbf", ""), "\\{", ""), "\\}", "")
160163
}
161164
if (params_ls$output_type_1L_chr == "PDF") {
162-
tb$Parameter <- tb$Parameter %>% purrr::map_chr(~ifelse(endsWith(.x,
163-
" model"), paste0("\\textbf{", .x, "}"), .x))
165+
tb %>% dplyr::mutate(dplyr::across(.cols = everything(),
166+
~dplyr::case_when(is.na(.x) ~ "", T ~ .x))) %>% kableExtra::kbl(booktabs = T,
167+
caption = knitr::opts_current$get("tab.cap"), escape = F,
168+
longtable = T, col.names = c("Parameter", "Estimate",
169+
"SE", "CI (95\\%)", "R2", "Sigma", "Estimate",
170+
"SE", "CI (95\\%)", "R2", "Sigma")) %>% kableExtra::kable_styling(latex_options = c("repeat_header")) %>%
171+
kableExtra::column_spec(3:6, width = "3em") %>% kableExtra::row_spec(which(!is.na(tb[,
172+
5])), bold = T) %>% kableExtra::add_header_above(parse(text = paste0("c(",
173+
"\" \"", ", ", paste0("\"", results_ls$ttu_lngl_ls$best_mdls_tb[[1,
174+
"model_type"]], " - ", results_ls$ttu_lngl_ls$best_mdls_tb[[1,
175+
"link_and_tfmn_chr"]], "\" = 5"), ", ", paste0("\"",
176+
results_ls$ttu_lngl_ls$best_mdls_tb[[2, "model_type"]],
177+
" - ", results_ls$ttu_lngl_ls$best_mdls_tb[[2,
178+
"link_and_tfmn_chr"]], "\" = 5"), ")")) %>%
179+
eval()) %>% kableExtra::collapse_rows(columns = 1) %>%
180+
kableExtra::footnote(general = make_scaling_text(results_ls),
181+
general_title = " ")
182+
}
183+
else {
184+
ready4show::print_table(output_type_1L_chr = params_ls$output_type_1L_chr,
185+
caption_1L_chr = caption_1L_chr, mkdn_tbl_ref_1L_chr = mkdn_tbl_ref_1L_chr,
186+
use_rdocx_1L_lgl = ifelse(params_ls$output_type_1L_chr ==
187+
"Word", T, F), add_to_row_ls = add_to_row_ls,
188+
footnotes_chr = make_scaling_text(results_ls), sanitize_fn = force)
164189
}
165-
tb %>% ready4show::print_table(output_type_1L_chr = params_ls$output_type_1L_chr,
166-
caption_1L_chr = caption_1L_chr, mkdn_tbl_ref_1L_chr = mkdn_tbl_ref_1L_chr,
167-
use_rdocx_1L_lgl = ifelse(params_ls$output_type_1L_chr ==
168-
"Word", T, F), add_to_row_ls = add_to_row_ls, footnotes_chr = make_scaling_text(results_ls),
169-
sanitize_fn = force)
170190
}
171191
#' Print independent predictors longitudinal model coefficients
172192
#' @description print_indpnt_predrs_lngl_mdl_coefs() is a Print function that prints output to console Specifically, this function implements an algorithm to print independent predictors longitudinal model coefficients. The function is called for its side effects and does not return a value.

R/fn_write.R

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,16 +1380,22 @@ write_ts_mdls <- function (data_tb, depnt_var_nm_1L_chr = "utl_total_w", predr_v
13801380
#' @param backend_1L_chr Backend (a character vector of length one), Default: getOption("brms.backend", "rstan")
13811381
#' @param iters_1L_int Iterations (an integer vector of length one), Default: 4000
13821382
#' @param new_dir_nm_1L_chr New directory name (a character vector of length one), Default: 'F_TS_Mdls'
1383+
#' @param path_to_write_to_1L_chr Path to write to (a character vector of length one), Default: 'NA'
13831384
#' @param prior_ls Prior (a list), Default: NULL
13841385
#' @param control_ls Control (a list), Default: NULL
13851386
#' @return Output summary (a list)
13861387
#' @rdname write_ts_mdls_from_alg_outp
13871388
#' @export
1389+
#' @importFrom stringr str_sub
13881390
write_ts_mdls_from_alg_outp <- function (outp_smry_ls, predictors_lup, utl_min_val_1L_dbl = -1,
13891391
backend_1L_chr = getOption("brms.backend", "rstan"), iters_1L_int = 4000L,
1390-
new_dir_nm_1L_chr = "F_TS_Mdls", prior_ls = NULL, control_ls = NULL)
1392+
new_dir_nm_1L_chr = "F_TS_Mdls", path_to_write_to_1L_chr = NA_character_,
1393+
prior_ls = NULL, control_ls = NULL)
13911394
{
1392-
output_dir_1L_chr <- write_new_outp_dir(outp_smry_ls$path_to_write_to_1L_chr,
1395+
if (is.na(path_to_write_to_1L_chr))
1396+
path_to_write_to_1L_chr <- outp_smry_ls$path_to_write_to_1L_chr %>%
1397+
stringr::str_sub(end = -8)
1398+
output_dir_1L_chr <- write_new_outp_dir(path_to_write_to_1L_chr,
13931399
new_dir_nm_1L_chr = new_dir_nm_1L_chr)
13941400
mdls_smry_tb <- write_ts_mdls(data_tb = outp_smry_ls$scored_data_tb,
13951401
depnt_var_nm_1L_chr = outp_smry_ls$depnt_var_nm_1L_chr,

R/mthd_author.R

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,52 @@ methods::setMethod("author", "SpecificModels", function (x, prefd_mdl_types_chr
7474
})
7575
#'
7676
#' Author and save files
77+
#' @name author-SpecificSynopsis
78+
#' @description author method applied to SpecificSynopsis
79+
#' @param x An object of class SpecificSynopsis
80+
#' @param reference_1L_int Reference (an integer vector of length one), Default: NA
81+
#' @param type_1L_chr Type (a character vector of length one), Default: 'Report'
82+
#' @param what_1L_chr What (a character vector of length one), Default: 'Catalogue'
83+
#' @return NULL
84+
#' @rdname author-methods
85+
#' @aliases author,SpecificSynopsis-method
86+
#' @export
87+
#' @importFrom purrr map2_chr map_chr
88+
#' @importFrom ready4 write_to_dv_with_wait author
89+
#' @importFrom tibble tibble
90+
methods::setMethod("author", "SpecificSynopsis", function (x, reference_1L_int = NA_integer_, type_1L_chr = "Report",
91+
what_1L_chr = "Catalogue")
92+
{
93+
if (what_1L_chr == "Catalogue") {
94+
outp_smry_ls_ls <- manufacture(x@b_SpecificResults, what_1L_chr = "indexed_shareable")
95+
if (is.na(reference_1L_int)) {
96+
outp_smry_ls_ls <- outp_smry_ls_ls[reference_1L_int]
97+
}
98+
ctlg_nms_chr <- purrr::map2_chr(outp_smry_ls_ls, 1:length(outp_smry_ls_ls),
99+
~{
100+
fl_nm_1L_chr <- paste0("AAA_TTU_MDL_CTG", ifelse(.y ==
101+
1, "", paste0("-", (.y - 1))))
102+
authorReport(x %>% renewSlot("b_SpecificResults@a_SpecificShareable@shareable_outp_ls",
103+
.x), fl_nm_1L_chr = fl_nm_1L_chr, what_1L_chr = "Catalogue")
104+
fl_nm_1L_chr
105+
})
106+
if (!is.na(x@e_Ready4useRepos@dv_ds_nm_1L_chr)) {
107+
ready4::write_to_dv_with_wait(dss_tb = tibble::tibble(ds_obj_nm_chr = ctlg_nms_chr,
108+
title_chr = purrr::map_chr(1:length(ctlg_nms_chr),
109+
~paste0("Catalogue of utility mapping models",
110+
ifelse(.x == 1, " (Primary Analysis)", paste0(" (Supplementary Analysis ",
111+
(.x - 1), ")"))))), dv_nm_1L_chr = x@e_Ready4useRepos@dv_nm_1L_chr,
112+
ds_url_1L_chr = x@e_Ready4useRepos@dv_ds_nm_1L_chr,
113+
parent_dv_dir_1L_chr = paste0(x@b_SpecificResults@a_SpecificShareable@shareable_outp_ls$path_to_write_to_1L_chr,
114+
"/H_Dataverse"), paths_to_dirs_chr = paste0(x@a_Ready4showPaths@outp_data_dir_1L_chr,
115+
"/", x@a_Ready4showPaths@reports_dir_1L_chr,
116+
"/", what_1L_chr), inc_fl_types_chr = ".pdf",
117+
paths_are_rltv_1L_lgl = F)
118+
}
119+
}
120+
})
121+
#'
122+
#' Author and save files
77123
#' @name author-SpecificProject
78124
#' @description author method applied to SpecificProject
79125
#' @param x An object of class SpecificProject

R/mthd_authorData.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ methods::setMethod("authorData", "SpecificMixed", function (x, title_1L_chr = "A
2323
outp_smry_ls[-1]
2424
})
2525
x <- renewSlot(x, "c_SpecificResults@a_SpecificShareable@shareable_outp_ls",
26-
outp_smry_ls[-1])
26+
append(results_ls[[1]], results_ls[-1]))
2727
}
2828
return(x)
2929
})

R/mthd_depict.R

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,51 @@
33
#' @name depict-SpecificSynopsis
44
#' @description depict method applied to SpecificSynopsis
55
#' @param x An object of class SpecificSynopsis
6-
#' @param base_height PARAM_DESCRIPTION, Default: 13
6+
#' @param axis_text_sclg_1L_dbl Axis text scaling (a double vector of length one), Default: 1.5
7+
#' @param axis_title_sclg_1L_dbl Axis title scaling (a double vector of length one), Default: 2
8+
#' @param base_height_1L_dbl Base height (a double vector of length one), Default: 13
79
#' @param base_size_1L_dbl Base size (a double vector of length one), Default: 30
810
#' @param depnt_var_desc_1L_chr Dependent variable description (a character vector of length one), Default: 'NA'
11+
#' @param dim_plot_heights_int Dimension plot heights (an integer vector), Default: c(10L, 1L)
12+
#' @param dim_plot_log_log_tfmn_1L_lgl Dimension plot log log transformation (a logical vector of length one), Default: F
13+
#' @param dim_plot_rows_cols_pair_int Dimension plot rows columns pair (an integer vector), Default: c(3L, 2L)
914
#' @param labels_chr Labels (a character vector), Default: c("A", "B", "C", "D")
1015
#' @param label_x_1L_dbl Label x (a double vector of length one), Default: 0.2
1116
#' @param label_y_1L_dbl Label y (a double vector of length one), Default: 0.9
1217
#' @param label_size_1L_dbl Label size (a double vector of length one), Default: 30
18+
#' @param legend_sclg_1L_dbl Legend scaling (a double vector of length one), Default: 2
1319
#' @param mdl_idxs_int Model indices (an integer vector), Default: 1:2
20+
#' @param rel_heights_dbl Rel heights (a double vector), Default: c(4, 10, 1)
21+
#' @param scale_dbl Scale (a double vector), Default: c(0.9, 0.9, 0.9)
1422
#' @param timepoint_old_nms_chr Timepoint old names (a character vector), Default: 'NA'
1523
#' @param timepoint_new_nms_chr Timepoint new names (a character vector), Default: 'NA'
1624
#' @param use_png_fls_1L_lgl Use png files (a logical vector of length one), Default: F
25+
#' @param utl_plot_label_1L_chr Utility plot label (a character vector of length one), Default: ' '
26+
#' @param utl_by_rnd_plots_params_ls Utility by round plots parameters (a list), Default: list(width_1L_dbl = 6, height_1L_dbl = 4)
1727
#' @param what_1L_chr What (a character vector of length one), Default: 'composite_mdl'
1828
#' @param write_1L_lgl Write (a logical vector of length one), Default: F
29+
#' @param y_label_1L_chr Y label (a character vector of length one), Default: ' '
1930
#' @return Plot (a plot)
2031
#' @rdname depict-methods
2132
#' @aliases depict,SpecificSynopsis-method
2233
#' @export
2334
#' @importFrom ready4show ready4show_correspondences
24-
#' @importFrom cowplot save_plot
25-
#' @importFrom ready4 depict
26-
methods::setMethod("depict", "SpecificSynopsis", function (x, base_height = 13, base_size_1L_dbl = 30, depnt_var_desc_1L_chr = NA_character_,
27-
labels_chr = c("A", "B", "C", "D"), label_x_1L_dbl = 0.2,
28-
label_y_1L_dbl = 0.9, label_size_1L_dbl = 30, mdl_idxs_int = 1:2,
35+
#' @importFrom rlang exec
36+
#' @importFrom youthvars make_var_by_round_plt make_sub_tot_plts
37+
#' @importFrom ready4 get_from_lup_obj depict
38+
#' @importFrom cowplot get_legend plot_grid save_plot
39+
#' @importFrom ggplot2 theme
40+
methods::setMethod("depict", "SpecificSynopsis", function (x, axis_text_sclg_1L_dbl = 1.5, axis_title_sclg_1L_dbl = 2,
41+
base_height_1L_dbl = 13, base_size_1L_dbl = 30, depnt_var_desc_1L_chr = NA_character_,
42+
dim_plot_heights_int = c(10L, 1L), dim_plot_log_log_tfmn_1L_lgl = F,
43+
dim_plot_rows_cols_pair_int = c(3L, 2L), labels_chr = c("A",
44+
"B", "C", "D"), label_x_1L_dbl = 0.2, label_y_1L_dbl = 0.9,
45+
label_size_1L_dbl = 30, legend_sclg_1L_dbl = 2, mdl_idxs_int = 1:2,
46+
rel_heights_dbl = c(4, 10, 1), scale_dbl = c(0.9, 0.9, 0.9),
2947
timepoint_old_nms_chr = NA_character_, timepoint_new_nms_chr = NA_character_,
30-
use_png_fls_1L_lgl = F, what_1L_chr = "composite_mdl", write_1L_lgl = F)
48+
use_png_fls_1L_lgl = F, utl_plot_label_1L_chr = " ", utl_by_rnd_plots_params_ls = list(width_1L_dbl = 6,
49+
height_1L_dbl = 4), what_1L_chr = "composite_mdl", write_1L_lgl = F,
50+
y_label_1L_chr = " ")
3151
{
3252
plt <- NULL
3353
outp_smry_ls <- append(x@b_SpecificResults@a_SpecificShareable@shareable_outp_ls,
@@ -45,10 +65,43 @@ methods::setMethod("depict", "SpecificSynopsis", function (x, base_height = 13,
4565
labels_chr = labels_chr, label_x_1L_dbl = label_x_1L_dbl,
4666
label_y_1L_dbl = label_y_1L_dbl, label_size_1L_dbl = label_size_1L_dbl,
4767
mdl_idxs_int = mdl_idxs_int, use_png_fls_1L_lgl = use_png_fls_1L_lgl)
48-
if (write_1L_lgl) {
49-
cowplot::save_plot(paste0(outp_smry_ls$path_to_write_to_1L_chr,
50-
"/dens_and_sctr.png"), plt, base_height = base_height)
51-
}
68+
write_path_1L_chr <- paste0(outp_smry_ls$path_to_write_to_1L_chr,
69+
"/dens_and_sctr.png")
70+
}
71+
if (what_1L_chr == "composite_utl") {
72+
ds_descvs_ls <- manufacture_SpecificSynopsis(x, what_1L_chr = "ds_descvs_ls")
73+
outp_smry_ls <- append(x@b_SpecificResults@a_SpecificShareable@shareable_outp_ls,
74+
x@b_SpecificResults@b_SpecificPrivate@private_outp_ls)
75+
maui_domains_col_nms_chr <- x@c_SpecificParameters@domain_labels_chr
76+
first_plt <- rlang::exec(youthvars::make_var_by_round_plt,
77+
!!!list(data_tb = outp_smry_ls$scored_data_tb, legend_sclg_1L_dbl = legend_sclg_1L_dbl,
78+
var_nm_1L_chr = ds_descvs_ls$utl_wtd_var_nm_1L_chr,
79+
round_var_nm_1L_chr = ds_descvs_ls$round_var_nm_1L_chr,
80+
x_label_1L_chr = ds_descvs_ls$dictionary_tb %>%
81+
ready4::get_from_lup_obj(match_value_xx = ds_descvs_ls$utl_wtd_var_nm_1L_chr,
82+
match_var_nm_1L_chr = "var_nm_chr", target_var_nm_1L_chr = "var_desc_chr",
83+
evaluate_1L_lgl = F) %>% as.vector(), label_fill_1L_chr = utl_plot_label_1L_chr,
84+
axis_text_sclg_1L_dbl = axis_text_sclg_1L_dbl,
85+
axis_title_sclg_1L_dbl = axis_title_sclg_1L_dbl,
86+
y_label_1L_chr = y_label_1L_chr))
87+
second_plt <- rlang::exec(youthvars::make_sub_tot_plts,
88+
!!!list(data_tb = outp_smry_ls$scored_data_tb, add_legend_1L_lgl = F,
89+
axis_text_sclg_1L_dbl = axis_text_sclg_1L_dbl,
90+
axis_title_sclg_1L_dbl = axis_title_sclg_1L_dbl,
91+
col_nms_chr = maui_domains_col_nms_chr, legend_sclg_1L_dbl = legend_sclg_1L_dbl,
92+
plot_rows_cols_pair_int = dim_plot_rows_cols_pair_int,
93+
round_var_nm_1L_chr = ds_descvs_ls$round_var_nm_1L_chr,
94+
heights_int = dim_plot_heights_int, make_log_log_tfmn_1L_lgl = dim_plot_log_log_tfmn_1L_lgl,
95+
y_label_1L_chr = y_label_1L_chr))
96+
legend_ls <- cowplot::get_legend(first_plt)
97+
plt <- cowplot::plot_grid(first_plt + ggplot2::theme(legend.position = "none"),
98+
second_plt, legend_ls, nrow = 3L, rel_heights = rel_heights_dbl,
99+
scale = scale_dbl)
100+
write_path_1L_chr <- paste0(x@a_Ready4showPaths@outp_data_dir_1L_chr,
101+
"/Output/_Descriptives/combined_utl.png")
102+
}
103+
if (write_1L_lgl) {
104+
cowplot::save_plot(write_path_1L_chr, plt, base_height = base_height_1L_dbl)
52105
}
53106
return(plt)
54107
})

R/mthd_investigate.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ methods::setMethod("investigate", "SpecificMixed", function (x, backend_1L_chr =
6464
utl_min_val_1L_dbl = x@b_SpecificParameters@depnt_var_min_max_dbl[1],
6565
backend_1L_chr = backend_1L_chr, new_dir_nm_1L_chr = new_dir_nm_1L_chr,
6666
iters_1L_int = x@b_SpecificParameters@iters_1L_int,
67+
path_to_write_to_1L_chr = x@a_Ready4showPaths@outp_data_dir_1L_chr,
6768
prior_ls = prior_ls, control_ls = control_ls)
6869
rename_lup <- x@c_SpecificResults@a_SpecificShareable@shareable_outp_ls$rename_lup
6970
session_ls <- x@c_SpecificResults@a_SpecificShareable@shareable_outp_ls$session_ls

0 commit comments

Comments
 (0)