plot.sk_partition_tree: Plot S3method for objects of type "sk_partition_tree".

View source: R/build_tree.R

plot.sk_partition_treeR Documentation

Plot S3method for objects of type "sk_partition_tree".

Description

S3method for plotting the resulting tree formed by the partitioning algorithms in the SK4FGA package.

Usage

## S3 method for class 'sk_partition_tree'
plot(x, ...)

Arguments

x

Output from the function "partition()"

...

Extra details for the plot. Unused.

Value

Plot of the decision tree that is formed by the sk_partition_tree object returned by partition and partition.multi.

Examples


data = generate_indices()
part = partition(data)
plot.sk_partition_tree(part)

data(glass)
data.multi = prepare_data(glass, 1)[1:3]
part = partition.multi(data.multi)
plot(part)


SK4FGA documentation built on Feb. 16, 2023, 9:06 p.m.