Problem grouping data by a variable

I currently uploaded US census data into R using a .csv file. I am trying to group the data by race and everything I try does not work. I am trying to get each individual grouped by “white” “black” etc. so I can plot a hist separating each bar representing a different race and the Y axis representing the total population.

What specifically have you tried?

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: