two_measures_relationship {ezEDA} | R Documentation |
Plot the relationship between two measures and optionally highlight a category
two_measures_relationship(data, measure1, measure2, category = NULL)
data |
A data frame or tibble |
measure1 , measure2 |
Unquoted column names of measures |
category |
Unquoted name of a category (can be factor, character or numeric) |
A ggplot plot object
two_measures_relationship(ggplot2::diamonds, carat, price)
two_measures_relationship(ggplot2::diamonds, carat, depth)
two_measures_relationship(ggplot2::mpg, displ, hwy)
two_measures_relationship(ggplot2::mpg, cty, hwy)
two_measures_relationship(ggplot2::mpg, displ, hwy, class)