Description Usage Arguments See Also Examples
Plots an rocTree
object. The function returns a dgr_graph
object that is rendered in the RStudio Viewer or survival/hazard estimate at terminal nodes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
an object of class " |
output |
a string specifying the output type; graph (the default) renders the graph using the |
digits |
the number of digits to print. |
tree |
is an optional integer specifying the n^{th} tree in the forest to print. |
rankdir |
is a character string specifying the direction of the tree flow. The available options are top-to-bottom ("TB"), bottom-to-top ("BT"), left-to-right ("LR"), and right-to-left ("RL"); the default value is "TB". |
shape |
is a character string specifying the shape style. Some of the available options are "ellipse", "oval", "rectangle", "square", "egg", "plaintext", "diamond", and "triangle". The default value is "ellipse". |
nodeOnly |
is a logical value indicating whether to display only the node number; the default value is "TRUE". |
savePlot |
is a logical value indicating whether the plot will be saved (exported); the default value is "FALSE". |
file_name |
is a character string specifying the name of the plot when "savePlot = TRUE". The file name should include its extension. The default value is "pic.pdf" |
file_type |
is a character string specifying the type of file to be exported. Options for graph files are: "png", "pdf", "svg", and "ps". The default value is "pdf". |
type |
is an optional character string specifying the type of plots to produce. The available options are "tree" for plotting survival tree (default),
"survival" for plotting the estimated survival probabilities for the terminal nodes, and "hazard" for plotting the estimated hazard for the terminal nodes.
The |
... |
arguments to be passed to or from other methods. |
See rocTree
for creating rocTree
objects.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.