Re: [R] Adjusting axis limits in ggplot2.

2020-06-20 Thread Rolf Turner
On 20/06/20 3:57 pm, Jeff Newmiller wrote: ?scale_x_discrete, in particular the expand argument. Thanks Jeff. Took me a while to get my head around it (I'm slow!!!) but I eventually got it. For the record, what I needed to do was set: ldCiPlot <- ldCiPlot + scale_x_discrete(expand=expan

Re: [R] Adjusting axis limits in ggplot2.

2020-06-19 Thread Jeff Newmiller
?scale_x_discrete, in particular the expand argument. On June 19, 2020 7:07:32 PM PDT, Rolf Turner wrote: > >I'm having trouble adjusting axis limits in ggplot2 when the variable >corresponding to that axis is a factor. I have attached a minimal >reproducible example in the file demo.txt. > >The

[R] Adjusting axis limits in ggplot2.

2020-06-19 Thread Rolf Turner
I'm having trouble adjusting axis limits in ggplot2 when the variable corresponding to that axis is a factor. I have attached a minimal reproducible example in the file demo.txt. The result (see it by sourcing demo.txt and printing ldCiPlot) is fine except that I would like the y-axis limits to