Description Usage Arguments Value Examples
View source: R/measure-relationships.R
Plot the relationship between two measures and optionally highlight a category
1 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.