seth at forestadapt.org
2014-Jun-26 11:01 UTC
[R] decreasing blank space in ggplot2 geom_area
I wish to shrink the automatically inserted blank space at either end of the x axis of my area plot, so that the colorful graphic in the center takes up more of the available space. When I use the scale_x_discrete(limits...) command to expand the displayed area, the graphic shrinks away from the x-axis ticks so that there is still the same amount of blank space at the edges. An example: df1 [[alternative HTML version deleted]]
Hi Seth, See the "expand" argument to ?discrete_scale Best, Ista On Thu, Jun 26, 2014 at 7:01 AM, <seth at forestadapt.org> wrote:> I wish to shrink the automatically inserted blank space at either end > of the x axis of my area plot, so that the colorful graphic in the > center takes up more of the available space. When I use the > scale_x_discrete(limits...) command to expand the displayed area, the > graphic shrinks away from the x-axis ticks so that there is still the > same amount of blank space at the edges. > > An example: > > df1 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.