Skip to content

Commit

Permalink
Fix " \examples lines wider than 100 characters:"
Browse files Browse the repository at this point in the history
  • Loading branch information
talgalili committed Nov 8, 2016
1 parent 08b09f0 commit e8cee13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions R/set.dendrogram.R
Expand Up @@ -72,8 +72,9 @@
#' @param value an object with the value to set in the dendrogram tree.
#' (the type of the value depends on the "what")
#' @param order_value logical. Default is FALSE. If TRUE, it means the order of
#' the value is in the order of the data which produced the \link{hclust} or \link{dendrogram} -
#' and will reorder the value to conform with the order of the labels in the dendrogram.
#' the value is in the order of the data which produced the \link{hclust}
#' or \link{dendrogram} - and will reorder the value to conform with the order
#' of the labels in the dendrogram.
#' @param ... passed to the specific function for more options.
#' @param which an integer vector indicating, in the case "dend" is
#' a dendlist, on which of the trees should the modification be performed.
Expand Down Expand Up @@ -210,9 +211,11 @@
#' plot
#'
#' #---- using order_value
#' # This is probably not what you want, since cutree returns clusters in the order of the original data:
#' # This is probably not what you want, since cutree
#' # returns clusters in the order of the original data:
#' dend %>% set("labels_colors", cutree(dend, k = 3)) %>% plot
#' # The way to fix it, is to use order_value = TRUE so that value is assumed to be in the order of the data:
#' # The way to fix it, is to use order_value = TRUE
#' # so that value is assumed to be in the order of the data:
#' dend %>% set("labels_colors", cutree(dend, k = 3), order_value = TRUE) %>% plot
#'
#'
Expand Down
11 changes: 7 additions & 4 deletions man/set.Rd

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

0 comments on commit e8cee13

Please sign in to comment.