| rotate | R Documentation |
Rotate a ggplot to create horizontal plots. Wrapper around
coord_flip.
rotate(...)
... |
other arguments to pass to |
# Load data
data("ToothGrowth")
df <- ToothGrowth
# Basic plot
p <- ggboxplot(df, x = "dose", y = "len",
color = "dose", palette = "jco")
p
# Create horizontal plots
p + rotate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.