Hello,
My date looks like this
"data <- data.frame( x = c(1, 2, 3, 4, 5, 100), y = c(10, 20, 30, 40, 50,50))
Create plot
p <- ggplot(data, aes(x = x, y = y)) +
geom_point() +
scale_x_continuous(breaks = c(0 ,1, 2, 3, 4, 5, 100), limits = c(0, 100)) +
scale_y_continuous(limits = c(0,50),breaks = seq(from=0, to =50, by=10))
p"
there huge gap between the xticks 5 and 100, i want to remove the gap and see the ticks close, and break the ticks with "//"
this is how i want to see my xticks "0,1,2,3,4,5,//,100"
can someone help me to do this ?