In my dataset, the x-variable is a categorical variable called "Agency" which has 3 variables. I am trying to plot multiple Y variables called "Limitation 1, Limitation 2,...Limitation7" to make a single graph that contains all the y variables and the x variable at the bottom. Below is the sample code I used to get the individual bar graphs, but is there a code that enables me to merge the results from all the 7 categorical Y variables into one layout?
This is currently the code I am using to get individual bar graphs and I did this for all the limitations
counts7 <- table(dataset$Limitation1, dataset$Agency)
barplot(counts7,main="Limitation1 and Agency",
xlab="HTA Agency", col=c("darkgrey","black")
legend = rownames(counts), beside=TRUE)