Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph) [SOLVED]

2016-10-25 Thread Paul Murrell
Hi Here are some alternatives that involve messing about with the grobs and viewports after the plot has been drawn. The percentage optimality of these solutions is up for debate ... ### # Edit the y-axis line after

Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph) [SOLVED]

2016-10-25 Thread Marc Girondot
After many tries, here is a solution using grob. I post here in case it could help someone. Note that this solution is not 100% optimal as it uses a trick (limits = c(-0.05, 1.02)) to show fully the points. Marc library("ggplot2"); require("gtable"); require("grid") p <- ggplot()+