Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/facets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

facet_wrap takes the arg facets only, not rows (since the faceting variable populates both rows and cols, unlike in facet_grid)

- `scales` (optional): Should the scales be fixed or free? Options: "free", "free_x", "free_y"
"""
function facet_wrap(args...; kwargs...)
d = Dict(kwargs)

Expand Down