title: How to plot a decision tree horizontally in R Markdown?
body: <p>In R Markdown, I would like to plot a decision tree horizontally, so that it fits better the entire PDF page. This code plots it vertically:</p>
  
  <pre><code>```{r, message=FALSE, warning = FALSE, echo=FALSE, cache = FALSE}
  
  rpart.lrn &lt;- makeLearner("classif.rpart", predict.type = "prob", fix.factors.prediction = FALSE) 
  model = train(rpart.lrn, task = classif.task, subset = train.set)
  tree &lt;- getLearnerModel(model)
  rpart.plot(tree) # visualise the tree
  ```
  </code></pre>
  
  <p>How can I plot it <strong>horizontally</strong> instead?</p>