This question already has an answer here:

When I fit a regression tree model in R, I can somehow look at the plotted tree to figure out the interactions of the predictors. However, when I fit a random forest model, I cannot plot a tree because there are too many of them. I can somehow find the importance order of the predictors (using varImpPlot function), but I do not know how to detect the interactions from the model. By the way, the importance plot only gives the importance order of the predictors, how can I figure out exactly how many of them should be included for further investigation. Thank you.

marked as duplicate by Sycorax, kjetil b halvorsen, COOLSerdash, mkt, Peter Flom Oct 31 at 11:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.