SyntaxFix
Write A Post
Hire A Developer
Questions
It seems like you want barplot(prop.table(table(animals))):
barplot(prop.table(table(animals)))
However, this is not a histogram.