two_measures_relationship: Plot the relationship between two measures and optionally...

Description Usage Arguments Value Examples

View source: R/measure-relationships.R

Description

Plot the relationship between two measures and optionally highlight a category

Usage

1
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

1
2
3
4
5
6
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)

kviswana/ezEDA documentation built on July 1, 2021, 1:02 p.m.