R: Rotate a ggplot Horizontally

rotate {ggpubr} | R Documentation

## Rotate a ggplot Horizontally

### Description

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

### Usage

    rotate(...)

### Arguments

`...` | other arguments to pass to `coord_flip`.

### Examples

    # 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()

[Package ggpubr version 0.1.6 Index]