0

this is the code

ggplot(new_long_seabirds, aes(fill= Fishing_trend, y=count, x=Category))+
   geom_bar(position="stack", stat="identity")+
                labs(x = 'Year', y = 'Number of catches (000)', title = 'Estimated Sea bird by catch by fish trend from 2003-2014')+
              scale_fill_brewer(palette="Spectral")+
              theme(axis.text.x = element_text(angle = 30, vjust = 1, hjust=1))

but makes this graph enter image description here

instead of points 2003-2014

how do i make the x axis points 2003-2014

Quinten
  • 35,235
  • 5
  • 20
  • 53
rhelp
  • 1
  • 1
  • 2
    either you have a proper date column ([see for example here](https://stackoverflow.com/questions/46993898/converting-numbers-to-month-year-in-r-ggplot2))and pass this as your x, or you add `+scale_x_continuous(breaks = 2003:2014)` – tjebo Jun 03 '22 at 09:18
  • 1
    If you share your data using `dput`, we can reproduce and show you the results. – Quinten Jun 03 '22 at 09:43

0 Answers0