Skip to content

Commit

Permalink
change .plot_indicator_correlations to .plot_correlations and adjust …
Browse files Browse the repository at this point in the history
…documentation
  • Loading branch information
FloSchuberth committed Feb 12, 2025
1 parent 9161336 commit 384d9fc
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions R/plot.cSEMResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plot.cSEMResults_default <- function(
x = NULL,
.title = args_default()$.title,
.plot_significances = args_default()$.plot_significances,
.plot_indicator_correlations = args_default()$.plot_indicator_correlations,
.plot_correlations = args_default()$.plot_correlations,
.plot_structural_model_only = args_default()$.plot_structural_model_only,
.graph_attrs = args_default()$.graph_attrs,
...
Expand Down Expand Up @@ -64,7 +64,7 @@ plot.cSEMResults_default <- function(
path_p_values = path_p_values,
correlations = correlations,
plot_significances = .plot_significances,
plot_indicator_correlations = .plot_indicator_correlations,
plot_indicator_correlations = .plot_correlations,
plot_structural_model_only = .plot_structural_model_only,
is_second_order = FALSE)

Expand Down Expand Up @@ -95,7 +95,7 @@ plot.cSEMResults_multi <- function(
x = NULL,
.title = args_default()$.title,
.plot_significances = args_default()$.plot_significances,
.plot_indicator_correlations = args_default()$.plot_indicator_correlations,
.plot_correlations = args_default()$.plot_correlations,
.plot_structural_model_only = args_default()$.plot_structural_model_only,
.graph_attrs = args_default()$.graph_attrs,
...
Expand All @@ -105,7 +105,7 @@ plot.cSEMResults_multi <- function(
plot(group_object,
.title = group_title,
.plot_significances = .plot_significances,
.plot_indicator_correlations = .plot_indicator_correlations,
.plot_correlations = .plot_correlations,
.plot_structural_model_only = .plot_structural_model_only,
.graph_attrs = .graph_attrs)
}, names(x), x)
Expand Down Expand Up @@ -134,7 +134,7 @@ plot.cSEMResults_2ndorder <- function(
x,
.title = args_default()$.title,
.plot_significances = args_default()$.plot_significances,
.plot_indicator_correlations = args_default()$.plot_indicator_correlations,
.plot_correlations = args_default()$.plot_correlations,
.plot_structural_model_only = args_default()$.plot_structural_model_only,
.graph_attrs = args_default()$.graph_attrs,
...
Expand Down Expand Up @@ -258,7 +258,7 @@ plot.cSEMResults_2ndorder <- function(
path_p_values = combined_path_p,
correlations = correlations,
plot_significances = .plot_significances,
plot_indicator_correlations = .plot_indicator_correlations,
plot_indicator_correlations = .plot_correlations,
plot_structural_model_only = .plot_structural_model_only,
is_second_order = TRUE)

Expand Down
6 changes: 3 additions & 3 deletions R/zz_arguments.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@
#' "*fisher_transformed*", "*mean_arithmetic*", "*mean_geometric*", "*mean_harmonic*",
#' "*geo_of_harmonic*". Defaults to "*dist_squared_euclid*".
#' Ignored if `.disattenuate = FALSE` or if `.approach_weights` is not PLS-PM.
#' @param .plot_indicator_correlations Logical. Should the correlations between the exogenous constructs
#' or indicators be plotted? Defaults to `exo`.
#' @param .plot_correlations Character string. Specify which correlations should be plotted, i.e.,
#' between the exogenous constructs (`exo`), between the exogenous constructs and between the indicators (`both`), or not at all (`none`)? Defaults to `exo`.
#' @param .plot_package Character string. Indicates which packages should be used for plotting.
#' @param .plot_significances Logical. Should p-values in the form of stars be plotted? Defaults to `TRUE`.
#' @param .plot_structural_model_only Logical. Should only the structural model,
Expand Down Expand Up @@ -520,7 +520,7 @@ args_default <- function(.choices = FALSE) {
.parameters_to_compare = NULL,
.path = NULL,
.path_coefficients = NULL,
.plot_indicator_correlations = c("exo", "both", "none"),
.plot_correlations = c("exo", "both", "none"),
.plot_package = NULL,
.plot_significances = TRUE,
.plot_structural_model_only = FALSE,
Expand Down
4 changes: 2 additions & 2 deletions man/csem_arguments.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/plot.cSEMResults_2ndorder.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/plot.cSEMResults_default.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/plot.cSEMResults_multi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 384d9fc

Please sign in to comment.