I have a decision tree represented as a list in R:
tree = list(
"Bin type" = list(
"no bin" = list(
"SOA linearity" = list(
"linear" = list("Linear MEM")
, "non-linear" = list("GAMM")
)
)
, "bin" = list(
"SOA type" = list(
"SOA as categorical" = list(
"Tool" = list(
"ANOVA"
, "MEM"
)
)
, "SOA as continuous" = list(
"SOA linearity" = list(
"linear" = list(
"Tool" = list(
"ANOVA"
, "MEM"
)
)
, "non-linear" = list("GAMM")
)
)
)
)
)
)
Is there a quick way to visualize this as a tree diagram?