diff --git a/DESCRIPTION b/DESCRIPTION index 1915e89..9eb077e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,4 +12,4 @@ Imports: htmlwidgets Suggests: testthat -RoxygenNote: 7.1.1 +RoxygenNote: 7.3.2 diff --git a/R/rhtmlSankeyTree.R b/R/rhtmlSankeyTree.R index d33048d..588417a 100644 --- a/R/rhtmlSankeyTree.R +++ b/R/rhtmlSankeyTree.R @@ -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 @@ -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 diff --git a/man/SankeyTree.Rd b/man/SankeyTree.Rd index 6712592..53e9271 100644 --- a/man/SankeyTree.Rd +++ b/man/SankeyTree.Rd @@ -38,9 +38,17 @@ SankeyTree( \item{tooltip}{Tooltip to attach to each node.} +\item{treeColors}{TODO. not used. remove from callees} + +\item{categoryLegend}{TODO. not used. remove from callees} + \item{terminalDescription}{Logical. Add description for terminal nodes? Defaults to FALSE.} \item{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.} + +\item{width}{The width of the generated widget.} + +\item{height}{The height of the generated widget.} } \description{ Create interactive d3.js visualizations of hierarchical data combining diff --git a/theSrc/R/htmlwidget.R b/theSrc/R/htmlwidget.R index d33048d..588417a 100644 --- a/theSrc/R/htmlwidget.R +++ b/theSrc/R/htmlwidget.R @@ -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 @@ -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