Skip to content

Commit

Permalink
set fixedsize to false
Browse files Browse the repository at this point in the history
  • Loading branch information
FloSchuberth committed Feb 6, 2025
1 parent a6be35d commit 0387066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/helper_plotModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ buildDotCode <- function(title,
for (construct in names(constructs)) {
constrType <- constructs[[construct]]
shape <- if (constrType == "Composite") "hexagon" else "circle"
fixed_size <- "width=1.5, height=1.5, fixedsize=true"
fixed_size <- "width=1.5, height=1.5, fixedsize=false"
if (!is.na(r2_values[construct])) {
r2_label <- paste0("R\u00b2 = ", round(r2_values[construct], 3))
dot_code <- paste0(dot_code, construct,
Expand Down Expand Up @@ -286,7 +286,7 @@ buildDotCode <- function(title,
cleaned_predictor <- gsub("_temp", "", predictor)
dot_code <- paste0(dot_code,
"\"", cleaned_predictor, "\"",
" [label=\"", cleaned_predictor, "\", shape=diamond, width=1.5, height=1.5, fixedsize=true];\n")
" [label=\"", cleaned_predictor, "\", shape=diamond, width=1.5, height=1.5, fixedsize=false];\n")
dot_code <- paste0(dot_code,
"\"", cleaned_predictor, "\"", " -> ", cleaned_dependent,
" [label=<", coefficient, stars, ">",
Expand Down

0 comments on commit 0387066

Please sign in to comment.