I have this data frame
product Total
AF064 21
AF065 24
AF066 1
AF067 13
AF068 6
AF069 3
AF070 5
AF071 1
AF072 3
AF073 3
AF074 5
AF075 2
AF076 28
AF077 0
AF078 3
AF079 10
AF080 0
AF081 13
AF082 0
AF083 3
AF084 3
AF085 2
AF086 3
AF087 0
AF088 1
AF089 1
AF090 2
AF091 4
AF092 2
AF093 3
AF094 2
AF095 3
AF096 1
AF097 2
AF098 2
AF099 1
AF100 21
AF101 1
AF102 3
I want to make barplots from this dataframe.
My code is
barplot(product,Total)
**Error in -0.01 * height : non-numeric argument to binary operator**
I also tried
barplot(dataframe)
**Error in barplot.default(dataframe) :
'height' must be a vector or a matrix**
I've also tried as.character
for the product but still can't do the graph.
I really appreciate your help guys, much thanks.