Skip to contents

Make x, y, color plot title

Usage

make_x_y_color_title(x, y, color)

Arguments

x

x variable

y

y variable

color

color variable

Value

String for plot title

Examples

diamonds <- ggplot2::diamonds
mini_dmnds <- diamonds[sample(nrow(diamonds), 10000), ]
gg_scatter(
  df = mini_dmnds,
  x_var = "carat",
  y_var = "price",
  alpha = 1 / 3,
  color = "#000000",
  size = 2
) + ggplot2::labs(title =
make_x_y_color_title(
  x = "carat",
  y = "price",
  color = "cut"
))