0

I hope I'm using the correct terminology with panel. I have a ggplot that I want to get rid of the border between the axis and the plotting of the data:

 ggplot(data = diamonds %>% head(40), aes(x=x, y=y)) + geom_point()+
   theme(plot.background = element_blank()
      )

i.e the red section shown below, and get the axis to start where the data plots start

enter image description here enter image description here

pluke
  • 3,832
  • 5
  • 45
  • 68
  • thanks, that solves it. Shall I delete the question? – pluke Nov 19 '21 at 16:20
  • 1
    No please don't! Duplicates are **good**! Increasing visibility of posts, linking different ways of asking the same question etc... – tjebo Nov 19 '21 at 16:23

0 Answers0