What sort of graph would you use to frequencies of 2 categorical variables?

What sort of graph would you use to frequencies of 2 categorical variables?

For example, with the data below

cat1  <- c("M", "M", "M", "F", "F", "F")
cat2 <- c("D", "I", "R", "D", "I", "R") 
n <- c(200, 150, 50, 250, 300, 50)
(data <- tibble(cat1, cat2, n))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.