title: Plot a tree diagram from a list in R
body: <p>I have a decision tree represented as a list in R:</p>
  
  <pre><code>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")
                      )
                  )
              )
          )
      )
  )
  </code></pre>
  
  <p>Is there a quick way to visualize this as a tree diagram?</p>