Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Imports:
htmlwidgets
Suggests:
testthat
RoxygenNote: 7.1.1
RoxygenNote: 7.3.2
10 changes: 7 additions & 3 deletions R/rhtmlSankeyTree.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
#' @param maxLabelLength Integer. Line wrapping will occur when the label of the node has width more than this value * 8 (pixels per char). Defaults to 25.
#' @param nodeHeight Height of each node in pixels. Defaults to 100 pixels.
#' @param tooltip Tooltip to attach to each node.
#' @param treeColors TODO. not used. remove from callees
#' @param categoryLegend TODO. not used. remove from callees
#' @param terminalDescription Logical. Add description for terminal nodes? Defaults to FALSE.
#' @param numeric.distribution Logical. Show numerical distribution for each node? If regression tree, then a histogram is plotted. If classification tree, then a horizontal bar plot is drawn. Defaults to TRUE.
#'
#'
#' @param width The width of the generated widget.
#' @param height The height of the generated widget.
#'
#'
#' @import htmlwidgets
#'
#' @export
Expand All @@ -30,7 +34,7 @@ SankeyTree <- function(
categoryLegend = FALSE, # TODO. not used. remove from callees
terminalDescription = FALSE,
numeric.distribution = TRUE,
width = NULL,
width = NULL,
height = NULL) {

# forward options using x
Expand Down
8 changes: 8 additions & 0 deletions man/SankeyTree.Rd

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

10 changes: 7 additions & 3 deletions theSrc/R/htmlwidget.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
#' @param maxLabelLength Integer. Line wrapping will occur when the label of the node has width more than this value * 8 (pixels per char). Defaults to 25.
#' @param nodeHeight Height of each node in pixels. Defaults to 100 pixels.
#' @param tooltip Tooltip to attach to each node.
#' @param treeColors TODO. not used. remove from callees
#' @param categoryLegend TODO. not used. remove from callees
#' @param terminalDescription Logical. Add description for terminal nodes? Defaults to FALSE.
#' @param numeric.distribution Logical. Show numerical distribution for each node? If regression tree, then a histogram is plotted. If classification tree, then a horizontal bar plot is drawn. Defaults to TRUE.
#'
#'
#' @param width The width of the generated widget.
#' @param height The height of the generated widget.
#'
#'
#' @import htmlwidgets
#'
#' @export
Expand All @@ -30,7 +34,7 @@ SankeyTree <- function(
categoryLegend = FALSE, # TODO. not used. remove from callees
terminalDescription = FALSE,
numeric.distribution = TRUE,
width = NULL,
width = NULL,
height = NULL) {

# forward options using x
Expand Down