0

A very simple and possibly stupid question, but how can I get intervals of 10 in my code? I have tried everything and cannot seem to get this. I want the intervals to be specifically in the plot that comes from the code below so that the horizontal axis shows intervals of 10.

Here is my code. I want there to be intervals of 10 from the lower limit to upper limit.

library(ggfortify)
ggdistribution(dnorm, seq(-50,40,0.1), mean= -15, sd= 10, fill = "blue")

1 Answers1

0

You can try adding scale_x_continuous :

library(ggfortify)
library(ggplot2)

ggdistribution(dnorm, seq(-50,40,0.1), mean= -15, sd= 10, fill = "blue") + 
  scale_x_continuous(breaks = seq(-50, 30, 10))

enter image description here

Ronak Shah
  • 377,200
  • 20
  • 156
  • 213