I was using the below code, and in the output I was getting a nice conditional shading in each node, depending on the %age of the Target variable (Y/N). Higher the % of Y, darker the shade of green and higher the %age of N, darker the shade of red.
rpart.plot(Rpart_temp, type = 4 , extra =104, digits = 2, cex=1)
Now I am using a new machine, and all I get is a black and white plot. Even if I add rpart.plot(Rpart_temp, type = 4 , extra =104, digits = 2, cex=1 , box.col=c("green", "red"))
I dont get the shading effect.
Any ideas? Sorry, I cannot share the plot outputs.