r - rpart in text mining for classification of documents I am using rpart to classify the documents whether it belongs to class a or class b. I want to prove or provide reasons  on what basis the document was classified correctly or wrongly. How can i do that?

I displayed the summary of the model. But it was not so convincing. 

Please help
rpart is a decision tree model and as such is very much interpretable.
You should visualize your decision tree. See the examples here, one of them is



Then for each given document you can follow the tree path and see 


what were the features on the way responsible for the classification 
what leaf your document arrived at and what is the percentage of correctly classified documents at these leaf.