문제

I have created my first confusion heatmap using the code I found here.

As I result I got a very nice plot with an "increasing" diagonal showing that the predicted and actual data are closely related. Now, when I look up other confusion matrices, all of them show a "decreasing" diagonal and I'm wondering whether I should adapt my plot in that way (and if so: how?).

Any ideas on that?

도움이 되었습니까?

해결책

By default, R displays a heatmap with the row names ordered from bottom to top, rather than top to bottom.

Here's how to change the ordering

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top