In R, a barplot is computed using the barplot function. Here is the most basic example you can do. The input data is a numeric vector, which gives the height of the bars. It can be a column of a dataframe. Please consult this page and this one to learn how to custom a barplot.
# Let's create a vector of data:
# The most basic barplot you can do:
Not what you are looking for ? Make a new search !