Questions tagged [boxplot]
A {boxplot} is used as a descriptive statistic. Both {pgfplots} and {pstricks} offers this as a graphing tool.
102
questions
2
votes
0
answers
42
views
How to draw multiple boxplot from one csv
I have 3 CSV files (teapot.csv, cube.csv, and sphere.csv)
They all look like that :
duration,x,y,z,norm
13506,0.763489,0.21941,0.571625,0.978678365
25162,1.466019,-0.222542,1.588425,2.172977365
9083,1....
1
vote
1
answer
61
views
How to add upper/lower fence + outliers to a box plot?
I'm trying to create a box & whiskers plot that includes the upper & lower fence, and the outliers. My current plot looks like this (minus all the labeling):
\documentclass [12pt, letterpaper]...
0
votes
1
answer
121
views
Change boxplot size
As you can see in the image, the height of the boxplot in y-direction is unreasonably huge. How can I adjust that?
Settings:
\documentclass[final, english, ngerman, a4paper, 12pt, numbers=noenddot,
cd=...
1
vote
2
answers
51
views
Overlapping mark plot and box plot
I am not very familiar with box plots in pgfplots. But now I have to do some. The first turned out pretty well with 3 boxes and their corresponding data.
I wanted to reuse this code for another box ...
2
votes
1
answer
90
views
Improve the visuals in the graph
After looking at some plots on OriginLab which combine boxplots with the distribution curve and the raw data, I wanted to do something similar in PGFPlots. I found some interesting work already here. ...
1
vote
1
answer
94
views
How to hatch Boxplot in TikZ
Can you please tell me how to add hatching to a Boxplot in TikZ? Thanks in advance.
\documentclass{article}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{tikz}
\usetikzlibrary{patterns}
\...
0
votes
0
answers
42
views
Pgfplots boxplot of whole table rather than one column?
I am currently making boxplots using the Pgfplots boxplots function, based on data in .dat files. I am creating groups of three boxplots (from three different models) for a variety of categories.
Next ...
0
votes
1
answer
37
views
How can you change the x-coords of a prepared boxplot in pgfplots?
I want to visualize data with pgfplot boxplots. I am using prepared boxplots. The only problem that i have is that i don't know how to customize the x-axis values of the boxplot correctly. The x-axis ...
1
vote
1
answer
36
views
Ommiting a row when boxplotting
I have a file that looks like this:
1 0.237340 0.135170 0.339511 0.237653 0.135482 0.339823
2 0.561320 0.422007 0.700633 0.165871 0.026558 0....
0
votes
0
answers
33
views
pgfplots: add margin 'whisker' to barchart [duplicate]
I have the following bar-chart with 5 sets of 2 bars. For some of the individual bars, there is a margin in the (upper) value. I would like to express this similar to a boxplot, with a 'whisker' on ...
1
vote
1
answer
47
views
TikZ PGFPlots Boxplots - Two labels (agree & disagree) on x axis
I want to visualise the results of a questionnaire using Boxplots. I am using TikZ with PGFPlots. I would like to label the left of the x axis with "Strongly disagree" and the right with &...
3
votes
1
answer
54
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
1
answer
37
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
1
answer
49
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
1
answer
60
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
1
answer
101
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]{...
1
vote
1
answer
439
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
1
answer
196
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
1
answer
236
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
1
answer
184
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
1
answer
88
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
0
answers
50
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
1
answer
562
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
0
answers
420
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
1
answer
97
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
0
answers
95
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
1
answer
344
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
1
answer
144
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
1
answer
838
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
0
answers
268
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
1
answer
393
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
1
answer
373
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
1
answer
533
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
1
answer
1k
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
2
answers
584
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
1
answer
549
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
1
answer
166
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 ...
1
vote
1
answer
94
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
0
answers
58
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
1
answer
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
1
answer
343
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
1
answer
1k
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
1
answer
1k
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
1
answer
227
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
1
answer
1k
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
1
answer
562
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
1
answer
159
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
1
answer
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
1
answer
554
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
1
answer
462
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 ...