I need to make a barplot in R.
Basically I have a dataset of baseball players that lists what team each player is on and what position each player plays at. For example:
Player    Team    Position 
1    Diamondbacks First Base
2    Diamondbacks Third Base
3    White Sox    Left Field
4    Giants       Pitcher
The actual dataset is much bigger than this, but its the same idea. I need to make a barplot of the showing the frequencies of the different positions in the teams, and I do not know how to go about doing so. Basically, all I know is barplot(), so any help would be great.
Thanks!
 
     
     
     
    
