How to create charts based on multiple categories in R




I have used CrossTable in R to generate some output that look like this:

Now I want to visualize the same info using some charts in R.So I want to see the break up of M and F within each car type.
How do I go about doing this in R

How do I draw a bar chart based on two groups in R

@data_hacks- you can make grid of plots and plot the car type and the specific gender(F,M) in this way you can visualize the both the plot in one graph .

Hope this helps!


This is the perfect example where a grouped bar plot could be useful. To understand how to make it go through:
It should be the ideal graph to showcase the information in the data. If you have any other doubts, add another question. :smile:

Hope this helps!