سؤال

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