Hi, I need to draw a graph which is grouped bar chart, y axis will be salary, x axis will be job title, and I want to present each job title with employment type in different colors(this contains part time, full time, freelance, contract these four types), it will be graph like this:
but the final graph needs to be horizontal bar plot as there are lots of job title in my dataset.
I have tried vegalite package but I found the code for grouped bar chart is complex to understand, therefore I have looked at plotlyjs, but I got the error:
Hi, thanks for the reply!
yes I realized that and I have turned ds into dataframe but there are still same errors, I have decided to avoid this problem by use the filter function from IMD package and draw the graph one by one, oh by the way, do you know how to extract all the rows that have employment type is FT from this dataset? (use the filter function from IMD package)
Of course everyone has different opinions, but just would like to mention that i think group bar plots are difficult to read and almost always better as line plots. It’s worth considering.