Hi,
basically what im trying to do is create a bar chart with specific values, but with 2 different data frames
A simplified version of data looks something like this
And i want to create a bar chart where Instance1 from both groups are side by side, and Instance2 from both groups is side by side.
Theyre in different data frames labelled Group A and Group B, so I'm not sure if ggplot2 would work? or if there is a way for to label x and y as specific columns from different data frames?
i seem to be making a mistake somewhere, ive transcribed the code to fit my data but i keep getting an error in the pivot line, despite the other lines working fine?
Error in pivot_longer(inst1:inst2) : object 'inst1' not found
That bit of pivot_longer() is selecting all the columns between inst1 and inst2; what are the names of your columns after the bind_rows() step? We're effectively stacking everything besides the group column, which is used to distinguish between the two datasets.