scales::show_col(pal_discrete2)
ggplot2::diamonds |>
gg_bar(x = color,
col = color,
pal = pal_discrete2,
width = 0.75)
ggplot2::diamonds |>
gg_blank(x = color,
col = color,
stat = "count",
pal = pal_discrete2) +
ggplot2::geom_point(stat = "count")
Run the code above in your browser using DataLab