From dc579038cae535f4da1b361d1bdaa19a8cf06187 Mon Sep 17 00:00:00 2001 From: Alexis Praga Date: Sat, 18 Oct 2025 16:46:57 +0200 Subject: [PATCH] Add facet_wrap documentation. --- src/facets.jl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/facets.jl b/src/facets.jl index 3162959..6fefd02 100644 --- a/src/facets.jl +++ b/src/facets.jl @@ -54,6 +54,16 @@ function facet_grid(args...; kwargs...) ) end +""" + facet_wrap(;rows, cols, scales = "fixed") + +facet_wrap() arrange panel in a matrix with 3 columns and as many rows as needed. It is most useful when you have one discrete variables. If you have two variables with many levels, try facet_grid(). + +# Arguments + +- `rows` (required): Variable to use for the rows of the matrix +- `scales` (optional): Should the scales be fixed or free? Options: "free", "free_x", "free_y" +""" function facet_wrap(args...; kwargs...) d = Dict(kwargs)