Menu

#278 boxplot grouping categorical

open
nobody
5
2022-10-29
2022-10-29
Roge
No

I would like to start by stating that I'm not a coder, so I come from a "normal" user perspective whatever that may mean, yes I understand terminal emulation usage and scripting but that is it.

Using Gnuplot 5.4 patchlevel 5 in a Linux machine

Data sample,

2003-2004|1|name| mex|born|6.8
2003-2004|1|name| mex|born|9.6
2003-2004|2|name| per|born|23.6
2003-2004|2|name| arg|born|6.6
2004-2005|2|name| arg|born|6.7
2003-2004|1|name| mex|born|9.6
2009-2010|1|name| mex|born|0.2
2009-2010|1|name| mex|born|27.5
2009-2010|1|name| mex|born|17.5
2009-2010|1|name| mex|born|2.8

I was able to "create" categories to differentiate between local and non-local persons by joining column 1 and column 4, however the boxplot is too cluttered,

boxplot

I would like to be able to at least create a a bigger gap between each year period, something like this without some coding dark magic,

desired boxplot

Finally, Would it be too difficult to implement a set title alignment? A centered/middle location for the title text is not always desired, and today I achieve it by using the offset which can be extremely daunting with all the different coordinate options, a simple set title "title" Left/Middle/Right would be awesome.

2 Attachments

Discussion


Log in to post a comment.