Questions tagged [boxplot]

A {boxplot} is used as a descriptive statistic. Both {pgfplots} and {pstricks} offers this as a graphing tool.

Filter by
Sorted by
Tagged with
2
votes
0answers
9 views

Outlier value missing

I have this code \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{pgfplots} \usepgfplotslibrary{statistics} \pgfplotsset{compat=1.10} \usepackage{caption} \begin{...
0
votes
1answer
28 views

Boxplot slightly moving depentend on upper whisker

I created a few boxplots which should align with each other. I noticed that one of the boxplots, the second one, is slightly moving to the left if the upper whisker is "5". This doesn't ...
0
votes
1answer
22 views

Outliers' colours do not match their corresponding Boxplot colour

can you give me some help here? I'm using custom colours for each axis of my boxplot, but their outliers do not match that color. This is what I have so far \documentclass{article} \usepackage[utf8]{...
0
votes
1answer
35 views

Legend on top of Diagram left aligned with x axes

I have a set of Boxplot diagrams generated using Python3 (tikzplotlib). I would like to add legends now that are left aligned with the x-Axis and positioned on top of the diagrams. Currently I solve ...
0
votes
1answer
58 views

PGFplots Boxplot, using values of median, quartile… outside axis environment

I try to make some boxplots to some given data and use the calculated values (pgfplots did) of the median, quartiles, average,... outside the axis environment. My MWE: \documentclass[utf8,fleqn]{...
0
votes
0answers
36 views

Customize Outliers in PGFPlots Boxplots

I try for a while now to customize the style of the outliers in boxplots, but nothing seems to work out. If I implement something like this: \pgfplotsset{ boxplot/every boxplot/.append style={ ...
1
vote
1answer
107 views

Add legend to tikz boxplot

I have major problems adding a proper legend to my tikz boxplot graph. Either the legend did not show at all or scrambled the whole boxplot layout. I would be happy with a basic legend inside or ...
2
votes
1answer
53 views

Add the raw data and distribution curve to a boxplot in Latex (TikZpictures)

I have a set of data and I would like to highlight the difference between two different groups. For this I want to build a graph similar to the one presented below. My question would be how to plot ...
3
votes
1answer
92 views

X-Axis break for boxplot with groupplot

I'm currently stumped in how to proceed to get an x-axis break for my boxplot. From going through slightly related tex.stackexchange posts, I'm guessing this should be achievable with groupplot, but ...
2
votes
1answer
89 views

Multiple boxplots grouped by key

I have some data in a CSV file that I want to use to create multiple boxplots. Every sample has an identifier "set" that denotes the membership to a certain set and I want to have one boxplot per set. ...
1
vote
1answer
49 views

How to add bars on upper and lower X-Axis in Tikz BoxPlot

I need to show green bars on the x-axis of a tikz boxplot as shown in the following figure. (The green bars indicate whether the corresponding question to this value is positive when the value is high ...
0
votes
0answers
39 views

Boxplot add circles/stars

Any advice on how to add circles or stars (*) to the plot? \pgfplotsset{width=7cm,compat=1.16}\usepgfplotslibrary{statistics} \begin{tikzpicture} \begin{axis}[ boxplot/draw direction=y, x axis line ...
4
votes
1answer
243 views

Dot and whisker plot in PGFplots

Sometimes it is useful to present the coefficients of a regression with accompanying confidence intervals as a dot-and-whisker plot. See here for a motivation of this approach and some examples of ...
1
vote
0answers
238 views

boxplot in gnuplot [closed]

I don't understand why some point are not taken by boxplot \documentclass[10pt]{beamer} \usetheme{Warsaw} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{...
3
votes
1answer
78 views

Bug when creating boxplot groups

I need to create a boxplot chart where the boxes are grouped. Based on the answer to this question . Create a graph which contains 4 groups where each group is composed of 4 boxes. \documentclass{...
1
vote
0answers
59 views

pgfplots boxplot without outliers, but with extrema [duplicate]

In response to this question asking about how pgfplots boxplots can be produced without outliers, this answer suggested a fix that does not seem to work anymore. (I am not the first to notice this as ...
2
votes
1answer
146 views

How can I specify the coordinates in a boxplot as black dots? [duplicate]

How can I specify the coordinates (here outliers) as black dots? The color in the square brackets is already defined as black, if I insert "mark=*" in the square brackets the boxplots disappear. \...
2
votes
1answer
71 views

Fiddling with Box plot using statistics library

For anyone who is experienced with the statistics package please give me some tips on how to achieve the following: 1. shaded in the box with gray!30 2. move the whole boxplot up by 0.25 unit so it is ...
2
votes
1answer
382 views

pgfplots: How to draw boxplot pairs separated in two y axis?

The user Korijn has posted a nice approach on how to create pairs of boxplots which are belonging to each other. Minimum Working Example (MWE): \documentclass[border=2mm]{standalone} \usepackage{...
1
vote
0answers
169 views

Combine fill and pattern in a pgfplot boxplot?

Is it possible to combine a pattern with a background color in Pgfplot boxplot? \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepgfplotslibrary{statistics} \usetikzlibrary{...
1
vote
1answer
205 views

Pgfplots box plot: change outlier style

I am trying to plot several box plots (data read from file), and I want them to look the same. I managed to do that for everything but the outliers, that still use the default style/colormap (see the ...
1
vote
1answer
238 views

Combine boxplot and histogram in one diagram (PGF/TikZ)

For my bachelor thesis I did a questionnaire, now I want to evaluate and visualise it in a diagram, combining multiple values. Most of the answers from this survey are in a scale of 1-5 or 1-6. I want ...
2
votes
1answer
365 views

pgfplots - box plot with colored outliers

I am trying to restyle a pgfplots box plot in a matter suggested by Daniel Carr. filled boxes instead of outlined thickened whiskers with no fences all elements (boxes, whiskers, and outliers) ...
2
votes
1answer
810 views

How to modify a boxplot!? (mean, outliers, values: median, …)

I have some issues with my boxplot and I hope someone can help me to fix them. Here my MWE: \documentclass[a4paper]{scrbook} \usepackage[utf8]{inputenc} \usepackage{textcomp} ...
5
votes
2answers
426 views

How to sketch a simple horizontal box plot

I am trying to plot a box plot in latex. Below is what I want (only horizontal axis; ticks or axis arrows are options but I do not want axes borders or any vertical axis element). The code below is ...
0
votes
1answer
378 views

Include average in boxplot

I would like to include an average into my boxplots. The boxplots are made using https://tex.stackexchange.com/a/183856/164280 as an example. I have seen in How to show the mean or average value on a ...
1
vote
1answer
109 views

boxplot prepared from table, accessed using row names instead of numbers

I have csv files1 that I want to plot as boxplots. I found the solution to that part of the problem here (courtesy of Jake), and that constitutes a large part of my MWE. The difference here is that I ...
2
votes
1answer
82 views

Misplaced boxes after some groups, remove white space

I am not sure why after the 6th group of data, the boxes start to be placed to the right (wrong position). I would like to remove this white space at the start and end (lines in red). % borrowed ...
2
votes
0answers
55 views

Custom command for multiple boxplots

I have to include a lot of boxplots in my document and would like to automate this with a custom command. I'd like to be able to write something like this: \boxplots[ range={1,2,3,4,5}, questions=...
3
votes
1answer
2k views

Create boxplots from file

My question is somewhat related to this thread. I would like to create box plots from a file. The file (in my case a CSV) looks like this: Upper,Lower,Min,Max,Median,Name 3,1,0,4,2,First 4,2,1,5,3,...
1
vote
1answer
284 views

Plot line connecting the medians of different boxplots

I have a plot including multiple boxplots, grouped (5 by 5) in different conditions, as shown in the figure Each group of 5 boxplots is based on data defined in a single file. I'd like to add a line ...
2
votes
1answer
875 views

How can I put nodes to the outliers in my boxplot?

I finally managed it to get the boxplot I wanted, but now I have no idea how to label my outliers. Does somebody have a solution? And I also want to change the labeling of the y-axis from .5 steps to ...
2
votes
1answer
989 views

pgfplots / boxplots: use draw color as fill color

I want to fill boxplots according to color that is used to them. For example, for red drawn boxplots, i want to fill it with red. Can you please help me? The code is copied from another topic. \...
1
vote
1answer
181 views

some of the boxplots in a group shifted

Some of the box plots are shifted. Can you please help me to solve it? (code is copied from user Korijn). \documentclass[a4paper]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{statistics} \...
0
votes
1answer
987 views

how to make vertical box plot to horizontal box plot

I have code that draws vertical box plot. I need to change it into horizontal box plot. Can you please tell me how to do it? \documentclass{article} \usepackage{pgf} \usepackage{pgfplots} \...
2
votes
1answer
510 views

box plot statistic with 2 lines

I am trying to have a boxplot from data , with two lines and frequency in the second line. example: I don't know how to do it, with a "foreach " or special command for boxplot ( pgfplots ) \...
3
votes
1answer
144 views

Boxplot with data from command

I'm trying to produce a boxplot with pgfplots where the data plotted is produced by some other command. Here a MCVE: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \...
2
votes
1answer
2k views

Multiple boxplots

In the following, you find a modified version of the boxplot from here (4 boxplots per data set instead of 2): \documentclass[a4paper]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{...
1
vote
1answer
431 views

Plotting and handling horizontal space of multiple boxplots from file

I want to plot several boxplots together but I have a couple of problems. Each 5 boxplots belong to the same condition, that's why they have the same style (crappy, at the moment, but I'm gonna work ...
0
votes
1answer
396 views

Boxplot with automatic quartiles - how to fit more than 4 plots?

I ran into the following problem: I want to use /pgfplots/boxplot to calculate and display the quartiles (and whiskers) using raw data. So instead of using boxplot prepare I would like to have ...
0
votes
1answer
930 views

Draw a boxplot from a specific line of my data set

I am new to PGFPlots and boxplot. My data set is as below: \begin{filecontents}{trial.dat} 1 12 3 2 25 6 21 8 6 11 2 23 14 15 16 17 82 92 11 22 39 43 51 61 79 80 9 1 22 3 48 35 66 17 28 99 \end{...
2
votes
0answers
980 views

Shift single x tick label to the right? [closed]

Is it possible to shift a single x tick label to the right? I created a boxplot and set the x ticks at the important positions (lower whisker, median aso.) Due to the fact that some points lie close ...
2
votes
0answers
145 views

PGFPlots: BoxPlot of a statistic table with absolute frequency

Here is my problem. I have data in a statistic table with value / absolute frequency like this: \pgfplotstableread{ 1 1 2 2 3 6 4 10 5 6 6 ...
1
vote
0answers
131 views

Error “i do not know the key '/pgfplots/boxplot lower whisker'” [closed]

I'm following this to learn a bit about pgfplots. I am trying to draw a boxplot following the example shown on page 469, but I get the I do not know the key '/pgfplots/boxplot lower whisker' error. ...
1
vote
1answer
109 views

Can I make an ellipse on a box-plot?

I saw a nice way to make a box plot here. But I would like to mark where a specific student is. So can I draw a small ellipse on the box plot. E.g. at 82%? I am thinking an ellipse is better, because ...
4
votes
1answer
900 views

Box Plots in tikzpicture - Two Plots per y tick

I need a Box plot with two boxes on each ytick. Any ideas? \begin{tikzpicture} \begin{axis} [ title=Scenario 1, height=6.0cm, width=8.0cm, xmin=6, xmax=20, xtick={6,8,...,20}...
1
vote
0answers
520 views

Drawing multiple box plots from a file

I've got data in the following format n lw lq m uq uw 50 200 209 237 327 569 100 376 379 386 390 391 150 ... ... Where lw = lower whisker, lq = lower quartile, etc. I want to plot each box against ...
2
votes
1answer
553 views

pgfplots boxplot first column as draw position

I have data like this in a file. 1 0.1 0.2 0.3 0.8 ... 5 0.3 0.5 0.6 0.9 ... 10 0.2 0.3 0.7 0.10 .. ... How do I tell boxplot to use the first column as draw position and compute the box for the ...
1
vote
1answer
1k views

How to fill the parameters of `boxplot prepared` with data from table using PGFPlots?

I want to draw a boxplot using boxplot prepared@ Page 469 of pgfplots-manual; v1.13, with the values of lower whisker, lower quartile, median, higher quartile, and higher whisker from a data file. ...
2
votes
1answer
326 views

Is it possible to user-define the percentages for lower/upper whisper in boxplot of PGFPlots?

According to Section 5.12.1 of the manual of PGFPlots; Revision 1.13 (2016/01/06), boxplot visualizes (see Page 472): Median is the 0.5–quantile of the input data. Lower quartile is the 0.25–...