Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n_factors is ignored #9

Open
m-clark opened this issue Mar 7, 2019 · 0 comments
Open

n_factors is ignored #9

m-clark opened this issue Mar 7, 2019 · 0 comments

Comments

@m-clark
Copy link
Owner

m-clark commented Mar 7, 2019

Currently n_factors arg in corr_heat is ignored at the point of checking for problematic input for small K column data (e.g. more factors than data would warrant).

  if (!plot_only) {
    if (rlang::is_null(dimnames(cormat))) 
      stop("Need a correlation matrix with row and column names")
    if (!rlang::is_null(n_factors) && nc < 4) {
      n_factors <- 1
    }
    else {
      n_factors <- floor(sqrt(nc))
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant