plotter: A plotter for decision tree models

View source: R/plotter.R

plotterR Documentation

A plotter for decision tree models

Description

This is a simplified plotting utility that allows visual checking of decision tree models. By default, the node names, costs, HRQoLs are displayed as well as the edge probabilities. The node attributes to display can be specified in varz. The boolean edgelabel variable allows turning the edge labels off.

Usage

plotter(node, varz = c("name", "cost", "qol"), edgelabel = TRUE)

Arguments

node

a data.tree object that must contain a probability field p

varz

Variables

edgelabel

Edge labels

Value

DiagrammeR object

Author(s)

Pete Dodd


petedodd/HEdtree documentation built on Dec. 5, 2022, 6:22 a.m.