Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top