Skip to content

Commit

Permalink
doc: add example for sorting by decreasing cluster size (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
niekdt committed Jan 15, 2024
1 parent 8032eb5 commit 746f8b3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions R/model.R
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,9 @@ setMethod('plotFittedTrajectories', 'lcModel', function(object, ...) {
#' # change cluster order
#' plotClusterTrajectories(model, clusterOrder = c('B', 'C', 'A'))
#'
#' # sort clusters by decreasing size
#' plotClusterTrajectories(model, clusterOrder = order(-clusterSizes(model)))
#'
#' # show only specific clusters
#' plotClusterTrajectories(model, clusterOrder = c('B', 'C'))
#'
Expand Down
3 changes: 1 addition & 2 deletions man/indexy.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plot-lcModel-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plot-lcModels-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/plotClusterTrajectories.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 746f8b3

Please sign in to comment.