two_measures_relationship {ezEDA}R Documentation

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


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)

[Package ezEDA version 0.1.1 Index]