Thank you so much for the quick reply!!! This is what I have got:
care = c(15, 18, 17, 11, 23, 7), fairness = c(7, 1, 9, 3,
1, 1), loyalty = c(10, 9, 11, 9, 9, 5), authority = c(17, 2,
22, 4, 6, 4), sanctity = c(1, 2, 11, 2, 11, 3), newspaper = c("Guardian",
"Guardian", "Guardian", "Guardian", "Guardian", "Guardian")), row.names = c(NA,
6L), class = "data.frame")
What I have so far for my simple barplot is this code:
ggplot(data = merged_data, aes(x= newspaper)) + geom_bar()
This gives me the total values for each newspaper in my dataset (Guardian, Daily Mail, Telegraph, Mirror).
However, each one of these has different word counts for each foundation ("care", "fairness", "loyalty", "authority", "sanctity"). That is what I would like to put in the bar chart - my foundations would replace the "genhlth" of my previous example. I'm just not sure how to make R understand this. Thank you a million trillion times for your help!!!!!