Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201945

How to reduce huge gap in ggplot?

$
0
0

My graph looks like this:

graph

Is there any way to reduce the huge gap and set the break myself?

This is a simpler version I am working on:

y1<- c(1,2,1000, 100000) 
x1 <- c (1,2,3,4) 
df <- data.frame(x1,y1) 
graph2 <- ggplot(data = df,aes(x= x1, y= y1)) + geom_point() 
plot(graph2) 


Viewing all articles
Browse latest Browse all 201945

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>