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

plot_correlations - colours #83

Open
Lefty2021 opened this issue Sep 19, 2024 · 2 comments
Open

plot_correlations - colours #83

Lefty2021 opened this issue Sep 19, 2024 · 2 comments

Comments

@Lefty2021
Copy link

Hi,

I have the below code. Since it's a PB design the main effects should not be correlated - which can be seen from get_attribute. However the colour is not as dark blue as should be based on the scale

##  Plackett-Burman design
df3 <- pb(12, nfactors  = 5) %>% 
  as.data.frame %>%
  mutate(across(everything(), \(x){as.factor(x) %>% as.numeric})) %>%
  mutate(across(everything(), \(x){rescale(x, to = c(-1, 1))}))

edf3 <- eval_design(model = ~.,
            design = df3) 

edf3 %>% plot_correlations

get_attribute(edf3) %>% print(digits = 5)

image


@Lefty2021 Lefty2021 reopened this Sep 25, 2024
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

3 participants
@Lefty2021 and others