View source: R/coord_trans_flip.R
coord_trans_flip | R Documentation |
coord_trans_flip
behaves similarly to ggplot2::coord_trans()
in that it
occurs after statistical transformation and will affect the visual appearance
of geoms. The main difference is that it also flips the x and y coordinates
like ggplot2::coord_flip()
.
coord_trans_flip(
x = "identity",
y = "identity",
xlim = NULL,
ylim = NULL,
clip = "on",
expand = TRUE
)
x , y |
Transformers for x and y axes or their names. |
xlim , ylim |
Limits for the x and y axes. |
clip |
Should drawing be clipped to the extent of the plot panel? A
setting of |
expand |
If |
library(ggplot2)
ggplot(mtcars, aes(disp, wt)) +
geom_point() +
coord_trans_flip(x = "log10", y = "log10")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.