my data is
year female male unknown
1929 0 50 0
1930 2 70 7
1931 0 400 1
1932 20 40 15
1933 25 120 0
I need to create a simple line chart with 3 lines where I can see gender changes over years.
I have tried something like
data <- melt(data, id.vars = 'year', variable.name = 'Gender')
ggplot(data, aes(year, value)) + geom_line(aes(colour = Gender))
but it shows me an empty chart and a comment
geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
How can I create a chart where I will have three lines, one for each gender?
Also, my date is bigger than this one, it contains 92 years so when I plot something, I get a huge mess of years on the x-axis
Is there a way to somehow fix it?

