EDIT: THIS is what I want my bar plot to look like – I managed to do it on JMP, and I'd like help doing it in R. Thanks!
I'm trying to create a plot on R. There are 2 variables (columns) of interest: "TrialType" and "SMTscenes.RESP" — TrialType's values are either "Old" or "New", whereas SMT~'s values are either "1", "2", "3", "4", or "r". That's right, that "r" isn't a 5, which makes this a bit frustrating.
hist(c(df$TrialType, df$SMTscenes.RESP))
is what I've tried so far, and that gives me this histogram, which does not display the difference between "Old" and "New" – or if it does, it is not all that clear to me.
At others' suggestions (previously), I've done:
table(c(df$SMTscenes.RESP, df$TrialType))
which outputs:
1 2 3 4 5
80 150 25 17 16
And now the previous histogram's form makes sense – but that's not what I'm looking for.
Let me know if there is other info/data I can provide. If so, let me know how to upload a .csv file.
Thanks in advance!