hello guys sai here, i'm trying to plot bar plot of a numeric vector dataset using ggplot2 package but i'm facing problem in plotting even i've converted the vector into a dataframe.
here's the code
If you want to directly supply the numbers to plot and both x and y values, use geom_col(). The geom_bar() counts how many times each value appears, so it only takes x or y as an argument.