Skip to content

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

@go4ino

Description

@go4ino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions