u/Lower-Duck-5779

How can I grey out boxes that I don't need

How can I grey out boxes that I don't need

Hi! I am working on making figures for my thesis. This figure is symmetrical (1:2 is the same value as 2:1. Is there a way to grey/black out repetitive boxes in R?

u/Lower-Duck-5779 — 1 day ago
▲ 11 r/RStudio

Confusion Matrices in R

Hi everyone. I am working on creating confusion matrices for some data that I have. I included an example sheet to help you understand what I need help with. Basically I have several participants that rated different images. I want to create a confusion matrix to show how accurately they rated the images compared to the expert rater but I cannot figure out how to do it in R. I have looked at a lot of websites but they all create their own data frame but I have an existing data frame that has many participants. I just don't know how to organize it to run the confusion matrix correctly. The ratings are categorical. Schumann et al. (2023) used the same categorical scale (MST). They made confusion matrices to display the data.

image Participant 1 Participant 2 Participant 3 Participant 4 Expert
Image 1 1 2 1 3
Image 2 5 4 6 5
Image 3 2 1 1 2
Image 4 4 3 3 5
Image 5 9 7 9 8
Image 6 7 7 8 7
reddit.com
u/Lower-Duck-5779 — 14 days ago