Skip to content

Commit

Permalink
fix screeplot
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuspfadt committed Oct 30, 2024
1 parent 1cd9f00 commit 3886b03
Show file tree
Hide file tree
Showing 3 changed files with 953 additions and 393 deletions.
7 changes: 6 additions & 1 deletion R/exploratoryfactoranalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,14 @@ exploratoryFactorAnalysisInternal <- function(jaspResults, dataset, options, ...
plt <- plt + ggplot2::geom_point(na.rm = TRUE, size = max(0, 3 + log(10) - log(n_col)))
}

# theming with special legend thingy
# add axis lines and better breaks
plt <- plt +
jaspGraphs::geom_rangeframe() +
jaspGraphs::themeJaspRaw() +
ggplot2::scale_x_continuous(breaks = seq(1:n_col))

# theming with special legend thingy
plt <- plt +
ggplot2::theme(
legend.position = c(0.99, 0.95),
legend.justification = c(1, 1),
Expand Down
6 changes: 6 additions & 0 deletions R/principalcomponentanalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,12 @@ principalComponentAnalysisInternal <- function(jaspResults, dataset, options, ..
plt <- plt + ggplot2::geom_point(na.rm = TRUE, size = max(0, 3 + log(10) - log(n_col)))
}

# add axis lines and better breaks
plt <- plt +
jaspGraphs::geom_rangeframe() +
jaspGraphs::themeJaspRaw() +
ggplot2::scale_x_continuous(breaks = seq(1:n_col))

# theming with special legend thingy
plt <- plt +
jaspGraphs::themeJaspRaw() +
Expand Down
Loading

0 comments on commit 3886b03

Please sign in to comment.