How to create a bar chart by using R programming for given data sets?

Ahoy, there are a number of options to create bar plots. My go to is ggplot2's geom_bar, (note all the examples below the documentation).

Base R also offers the ability with the appropriately named barplot function. A quick intro here,

If you have trouble with any of this, it's helpful to walk us through an example of what you're trying to do (ideally with a reprex, FAQ: What's a reproducible example (`reprex`) and how do I do one?), and giving a clear sense of where you're having trouble creating what you'd like to see.