Skip to content

Commit

Permalink
These two functions are required by breakDown and DALEX
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiecek committed Mar 24, 2018
1 parent f665dd9 commit 4df917a
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: factorMerger
Title: The Merging Path Plot
Version: 0.3.5
Version: 0.3.6
Authors@R: c(
person("Agnieszka", "Sitko", email = "[email protected]", role = c("aut", "cre")),
person("Aleksandra", "Grudziąż", email = "[email protected]", role = c("aut")),
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export(plotHeatmap)
export(plotMeansAndConfInt)
export(plotProfile)
export(plotProportion)
export(plotResponse)
export(plotSurvival)
export(plotTree)
export(plotTukey)
importFrom(MASS,isoMDS)
importFrom(agricolae,HSD.test)
Expand Down
25 changes: 25 additions & 0 deletions R/visualizations.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,23 @@ treeTheme <- function(panelGrid = TRUE) {
return(myTheme)
}

#' Plot Tree - Helper Function
#'
#' @param factorMerger object to be plotted
#' @param statistic this parameter will be passed to plotSimpleTree
#' @param nodesSpacing this parameter will be passed to plotSimpleTree
#' @param clusterSplit this parameter will be passed to plotSimpleTree
#' @param markBestModel this parameter will be passed to plotSimpleTree
#' @param markStars this parameter will be passed to plotSimpleTree
#' @param alpha this parameter will be passed to plotSimpleTree
#' @param color this parameter will be passed to plotSimpleTree
#' @param colorsDf this parameter will be passed to plotSimpleTree
#' @param palette this parameter will be passed to plotSimpleTree
#' @param title this parameter will be passed to plotSimpleTree
#' @param subtitle this parameter will be passed to plotSimpleTree
#' @param panelGrid this parameter will be passed to plotSimpleTree
#' @export

plotTree <- function(factorMerger, statistic, nodesSpacing,
clusterSplit, markBestModel, markStars,
alpha, color, colorsDf,
Expand Down Expand Up @@ -465,6 +482,14 @@ warnIfUnexpectedResponsePanel <- function(responsePanelSet,
return(responsePanel)
}

#' Plot Response - Helper Function
#' @param factorMerger object to be plotted
#' @param responsePanel logical - shall it be plotted
#' @param colorClusters colors
#' @param clusterSplit criteria for splitting
#' @param responsePanelPalette colors for reponse
#' @export

plotResponse <- function(factorMerger, responsePanel,
colorClusters, clusterSplit,
responsePanelPalette) {
Expand Down
23 changes: 23 additions & 0 deletions man/plotResponse.Rd

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

40 changes: 40 additions & 0 deletions man/plotTree.Rd

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

0 comments on commit 4df917a

Please sign in to comment.