titanicDataTree = createDataTree(titanicH2oTree) GetEdgeLabel <- function(node) {return (node$edgeLabel)} GetNodeShape <- function(node) {switch(node$type, split = "diamond", leaf = "oval")} GetFontName <- function(node) {switch(node$type, split = 'Palatino-bold', leaf = 'Palatino')} SetEdgeStyle(titanicDataTree, fontname = 'Palatino-italic', label = GetEdgeLabel, labelfloat = TRUE, fontsize = "26", fontcolor='royalblue4') SetNodeStyle(titanicDataTree, fontname = GetFontName, shape = GetNodeShape, fontsize = "26", fontcolor='royalblue4', height="0.75", width="1") SetGraphStyle(titanicDataTree, rankdir = "LR", dpi=70.) plot(titanicDataTree, output = "graph")