x_vec <- 1:100
y_vec <- seq(1,200,2)
data <- data.frame(x=x_vec,y=y_vec) #y=2xggplot(data, aes(x=x,y=y)) +
geom_ribbon(aes(ymax=y+5,ymin=y-5), alpha=0.5) + #make a semi-transparent ribbon
scale_y_continuous(limits=c(10,100),expand=c(0,0)) + #set the limits and remove and margins within the plot for y-axis scale_x_continuous(expand=c(0,0)) #remove margins within plot for x-axis
As you can see, the ribbon does this ugly thing where it cuts of vertically instead of going all the way to the x-axis. I would like to get something like this (which I did quickly using paint just for demonstration):
Can anyone help me with that? Thank you :)
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.