% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/examples.R
\name{example_scatterplot}
\alias{example_scatterplot}
\alias{example_barplot}
\title{Example plots for discrete color palettes}
\usage{
example_scatterplot()

example_barplot()
}
\value{
A \code{ggplot} object.
}
\description{
Utility functions that return simple ggplot2 examples to
demonstrate discrete color/fill scales.
}
\details{
\itemize{
\item \code{example_scatterplot()} creates a scatter plot of large diamonds
(\code{carat >= 2.2}), mapping \code{table} to the x‑axis, \code{price} to the y‑axis,
and \code{cut} to color.
\item \code{example_barplot()} creates a side‑by‑side bar chart of diamond counts
by \code{color}, grouped by \code{cut} via fill.
}
}
\examples{
example_scatterplot()
example_barplot()
}
