Re: [R] ggplot2 package: argument of expand with scale_x_discrete()

2016-12-29 Thread Ista Zahn
Use coord_fixed() --Ista On Thu, Dec 29, 2016 at 9:59 AM, Fix Ace via R-help wrote: > > > > Hello, there, > What exactly does "expand" do for this function? > I followed the examples from the manual to get a plot: > > d <- ggplot(subset(diamonds, carat > 1), aes(cut, clarity)) +geom_jitter() >

[R] ggplot2 package: argument of expand with scale_x_discrete()

2016-12-29 Thread Fix Ace via R-help
Hello, there, What exactly does "expand" do for this function? I followed the examples from the manual to get a plot: d <- ggplot(subset(diamonds, carat > 1), aes(cut, clarity)) +geom_jitter() I would like to have all the dots in a square instead of rectangular range. When I applied d + sca