cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
Moon
Level I

Decreasing the space between boxes in a simple box plot

Hi everyone, 

I wonder if there is a way to decrease the space between boxes in a box plot. I do not have groups, so I cannot use graph spacing. And when I try to change it manually by X-axis setting, the white space for the graph increases, which is not good. would you please advise how to proceed? Thanks

Moon_0-1744334371662.png

Moon_1-1744334439524.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mikedriscoll
Level VI

Re: Decreasing the space between boxes in a simple box plot

You should be able to grab the right hand part of that plot with the mouse and drag it left to make the plot window narrower.  It will condense the plot.  I don't know that you can control the amount of white space vs boxplot specifically.

View solution in original post

3 REPLIES 3
mikedriscoll
Level VI

Re: Decreasing the space between boxes in a simple box plot

You should be able to grab the right hand part of that plot with the mouse and drag it left to make the plot window narrower.  It will condense the plot.  I don't know that you can control the amount of white space vs boxplot specifically.

jthi
Super User

Re: Decreasing the space between boxes in a simple box plot

Those x-axis values you have are really "numbers" in the x-axis starting from 0

jthi_0-1744452478589.png

So you have some options which you can play around with:

  • Modify width proportion
  • Change graph size
  • Change X-axis ends

Combine these different methods together to hopefully get what you want.

-Jarmo
Moon
Level I

Re: Decreasing the space between boxes in a simple box plot

Thanks Jarmo, 

In the x axis I have two group 1(with injury) and 2( without injury) these two 

  • Change graph size
  • Change X-axis ends   works better. 

Recommended Articles