% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api.R
\name{coord_flip}
\alias{coord_flip}
\title{Flipped Cartesian coordinates}
\usage{
coord_flip()
}
\value{
A \link{CoordCartesian} object to add with \code{+}.
}
\description{
Draws the plot with x and y swapped — the usual way to get horizontal
bars or a readable categorical axis with long labels.
}
\examples{
d <- data.frame(g = c("alpha", "beta", "gamma"), v = c(3, 7, 5))
ggnext(d, aes(g, v)) + geom_col() + coord_flip()
}
