Skip to content

Commit

Permalink
docs: update documentation for split_by and palette/palcolor in `basi…
Browse files Browse the repository at this point in the history
…c-design`
  • Loading branch information
pwwang committed Nov 24, 2024
1 parent d9655f3 commit 22f382b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/articles/basic-design.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Unlike other plotting packages, `plotthis` provides a unified interface for both

Most of the plotting functions in `plotthis` support both splitting and faceting.

The `split_by` argument is used to split the data and generate multiple plots, and the data in the `split_by` columns will be used to split the data and generate multiple plots, which will be combined into one plot. Those sub-plots are independent of each other, and they have their own scales and guides.
The `split_by` argument is used to split the data and generate multiple plots, and the data in the `split_by` columns will be used to split the data and generate multiple plots, which will be combined into one plot. Those sub-plots are independent of each other, and they have their own scales and guides. In addition, the `split_by_sep` argument is used to concatenate the columns specified in `split_by` into one column, using the specified separator. The palettes/palcolors can be different for each sub-plot using the `palette`/`palcolor` argument.

For faceting, the `facet_scales` argument is used to control the scales of the facets. The `facet_wrap` function is used when `facet_by` has one column; otherwise, the `facet_grid` function is used when `facet_by` has two columns.

Expand Down

0 comments on commit 22f382b

Please sign in to comment.