rotate: Rotate a ggplot Horizontally

Description Usage Arguments Examples

View source: R/rotate.R

Description

Rotate a ggplot to create horizontal plots. Wrapper around coord_flip.

Usage

1

Arguments

...

other arguments to pass to coord_flip.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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()

YTLogos/ggpubr documentation built on May 3, 2019, 9:04 p.m.