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

ggcorr() suggestion, add option to provide custom labels for the variables #479

Open
go4ino opened this issue Dec 12, 2023 · 0 comments
Open

Comments

@go4ino
Copy link

go4ino commented Dec 12, 2023

For the function ggcorr() I think adding an option to change the variable labels with an input field in the function call would be great addition.

I know you can kind of accomplish this by renaming the columns in the original dataframe, but that runs into issues if you'd like more complex names like Mug Moment Aggregate %age, and then you will want to change the column names back for other functions.

For example with the current ggcorr

library(tidyverse)
library(GGally)
data("economics")
ggcorr(economics, label = TRUE)

image

And the new input option could look something along the lines of

library(tidyverse)
library(GGally)
data("economics")

ggcorr(economics, label = TRUE, var_labels = c('pers_consum_expen', 'population', 'ps_rt', 'bigChungus', 'unemployed')  )

image

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