Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [boxplot]

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

2
votes
1answer
29 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
47 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
47 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{...
0
votes
1answer
34 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
87 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
119 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
157 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
214 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
120 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
71 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
1answer
68 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
49 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
671 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
200 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
446 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
534 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
120 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
533 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
0answers
39 views

Colors for bars in pgfplots box plot [duplicate]

I am looking for some help with pgfplots. I don't like the default colors for this boxplot and would like to choose some others but not sure how best to do this with this package. I need the colours ...
2
votes
1answer
377 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
124 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
892 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
291 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
268 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
618 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{...
1
vote
0answers
591 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
121 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
96 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
89 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
610 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
381 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
417 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
786 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
244 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–...
3
votes
1answer
795 views

PGF boxplot with annotations

I read the section about boxplots in the pgfplots manual but I cant get it to work. I need to display the median inside the boxplot above or below the line of the median. How can I add the values to ...
5
votes
1answer
859 views

Unmodified boxplot with pgfplots

When using pgfplots to create a boxplot, it'll draw a modified box plot by default, where the whiskers are the largest/smallest non-outlier values and the outliers are represented by dots. Is there a ...
4
votes
1answer
497 views

Using named nodes as pgfplots coordinates

Is it possible to use named nodes as coordinates in an \addplot command? I am trying to plot a line through the averages of a number of boxplots calculated by pgfplots (rather than using boxplot ...
2
votes
1answer
1k views

Showing legend for boxplot in pgfplots

I am trying to display a legend for a boxplot created in pgfplots. However the size of the legend is almost as large as the plot and covers up all of my plot, how do I fix this? \documentclass{...
2
votes
0answers
171 views

Box plots from dataset with metadata in one column and data in another

How can I instruct pgfplots to generate a boxplot from a dataset with an identifier in one column (Label in the example below) and the data in another column (Value in the example below)? I would like ...
2
votes
0answers
284 views

Pgfplots Boxplots with a thick line at the mean value [duplicate]

pgfplot produces nice looking plots, that have consistent look and feel. But sometimes you have a good reason to change that look, and I found it tricky to change style of an specific line, circle, ...
2
votes
1answer
823 views

How do I change the color of average in boxplot n pgfplots?

I have a simple graph using boxplot and I'm trying to customize the look. I'm part way there, but am having trouble with the average. where I have changed the color of the box and the median, but the ...
4
votes
0answers
763 views

Groups of boxplots using symbolic coordinates

I would like to create a plot similarly as to the bar plot example, but with boxplots instead of bars. So far what I have this MWE: \documentclass{article} \usepackage{amsmath} \usepackage{...
2
votes
2answers
1k views

How to change the mark in a pgfplots boxplot

I have my own custom style for boxplots which I like very much. I like it so much I would like to use it everywhere. I used it with the old boxplots, and it did everything I wanted. However, the ...
1
vote
0answers
116 views

How to fix pgf boxplot error with only zero value in samples?

Following this previous question I am still figuring out how to properly handle different "borderline" cases with the boxplot feature provided by pgfplots. The following MWE: \documentclass{...
1
vote
0answers
434 views

How to group box plots in pgf / tikz? [closed]

Grouping bar charts is easily done using pgf / tikz, e.g., \begin{tikzpicture} \begin{axis}[ width = 0.85*\textwidth, height = 4cm, major x tick style = transparent, xbar=2*\...
4
votes
1answer
984 views

pgfplots : Box Plots and two y axis

I'm trying to add some data points on another y axis along with box plots. My experience in TeX is quite limited and I'm not sure why my axis appears in the middle of my x axis instead of at the end ...
2
votes
1answer
503 views

PGFPLOTS: How To Put \addplot boxplot prepared Inside Macro Definition

I have a need to wrap the `\addplot [boxplot prepared]' inside a macro to greatly save typing. It seems simple enough, but the devil is in the details with macro expansion issues. Is this doable given ...
1
vote
0answers
216 views

PGFPLOTS defintion inside macro inside table or insert boxplots inside table

I am trying to take a plot of a series of boxplots and include/insert these into a table. The code came from a posting of using a data table to define a series of boxplots. The code for the table ...
3
votes
1answer
860 views

pgfplots generating incorrect boxplots

While trying to reproduce some boxplots using pgfplots (and analyzing samples automatically), I noticed that in some cases I was getting different plots from Matlab. I have left all the settings in ...
3
votes
1answer
2k views

PGFPLOTS boxplot data from inline file

I have The following code: \documentclass{article} \usepackage{filecontents} \usepackage{pgfplots, pgfplotstable} \usepgfplotslibrary{statistics} \begin{document} \pgfplotsset{width=7cm,compat=1....