Please help with bar graph data!!

Coding help

So I'm working on an assignment that requires the use of R to plot data but beyond making basic prop tables I'm clueless. I'm using a Titanic data set that includes 'Residence', this being either British, American, or Other, and 'Survival', this being survived or died. I'm trying to make a bar graph that has percentage of survival on the y axis, and the three nationalities on the x axis. Unsure how to separate survived from died, however, or how to present it as a percentage in the bar graph. Any help would be much much appreciated !!

Posted Apr 4, 2026, 1:18 PM UTC

07
Loading comments…