Learn R Programming

ezEDA (version 0.1.1)

two_measures_relationship: Plot the relationship between two measures and optionally highlight a category

Description

Plot the relationship between two measures and optionally highlight a category

Usage

two_measures_relationship(data, measure1, measure2, category = NULL)

Arguments

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)

Value

A ggplot plot object

Examples

Run this code
# NOT RUN {
two_measures_relationship(ggplot2::diamonds, carat, price)
two_measures_relationship(ggplot2::diamonds, carat, depth)
# }
# NOT RUN {
two_measures_relationship(ggplot2::mpg, displ, hwy)
two_measures_relationship(ggplot2::mpg, cty, hwy)
two_measures_relationship(ggplot2::mpg, displ, hwy, class)
# }

Run the code above in your browser using DataLab