reorder_within: Helper function to reorder ggplot facets.

View source: R/facet_reorder.R

reorder_withinR Documentation

Helper function to reorder ggplot facets.

Description

Taken from https://stackoverflow.com/questions/52214071.

Usage

reorder_within(x, by, within, fun = mean, sep = "___", ...)

Arguments

x

The column to reorder.

by

The column with which x should be ordered.

fun

Passed on to stats::reorder().

sep

Separator string used to concatenate columns.

...

Currently not used.

Author(s)

Andreas Scharmueller, andschar@proton.me


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.