Questions tagged [boxplot]

Boxplot is a form of displaying cardinally scaled data displaying robust summary statistics as graphical elements.

A boxplot (or a box-and-whisker plot) is a mean of displaying cardinally scaled data. The graphic displays robust summary statistics of a given dataset. These include for the box: the median, the lower quartile and the upper quartile. The enclosed whiskers are not commonly defined and may display some figure tied to the inter quartile range (e.g. IQR x 1.5) or the maxima/minima. Sometimes outliers are displayed as well.

Boxplots may easily be created by most statistical packages such as:

boxplot(rnorm(100)) #For R
boxplot(randn(100)) %For Matlab
graph box variable  'For Stata
boxplot(data)       #For matplotlib (python)
boxplot(dataframe)  #For seaborn (python)

Link:

3351 questions
1
vote
2 answers

JFreeChart customize BoxAndWhiskerToolTip

I am adding tooltip to Box and Whisker plot. final BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer(); String tooltipformat = "Max: {5}\nQ3: {7}\nQ1: {6}\nMin: {4}\nMean: {2}\nMedian: {3}"; renderer.setBaseToolTipGenerator(new…
Sam
  • 1,252
  • 5
  • 20
  • 43
1
vote
1 answer

How to create box plot displaying mean and standard deviation and a scatterplot of points as well

I am attempting to create a box plot displaying mean and standard deviation and a scatterplot of points in the software R by modifying the code below. library(ggplot2) # create fictitious data a <- runif(10) b <- runif(12) c <- runif(7) d <-…
aa kk
  • 19
  • 1
  • 4
1
vote
1 answer

Fixing problems with ggplot palette - how to create a gradient boxplot?

Folks, please help. Tried everything. Went through different options. With factor and without, with scale_fill_manual and scale_fill_gradient... Nothing works, unfortunately :( I created a boxplot income.boxplot <- ggplot(income.by.state, aes(x =…
Anakin Skywalker
  • 2,400
  • 5
  • 35
  • 63
1
vote
1 answer

How to make boxplot for time format data?

I have a data frame with four columns showing the daylight in hours. I need to make boxplot to compare different groups and also to take anova test for comparing the groups. here is what i did but it is not working. A B C …
Mori
  • 241
  • 1
  • 2
  • 10
1
vote
1 answer

Showing number of values outside axis range in boxplot (using ggplot2 in R)

Sometimes you want to limit the axis range of a plot to a region of interest so that certain features (e.g. location of the median & quartiles) are emphasized. Nevertheless, it may be of interest to make it clear how many/what proportion of values…
Björn
  • 644
  • 10
  • 23
1
vote
1 answer

boxplots from two dataframes in R

I'd like to create a boxplot from two different dataframes in R. In each dataframe, the rows represent samples. While the columns represent diseases. The boxplot distribution should be made from the values in each row. The data is supposed to show…
shwetaaaa
  • 61
  • 2
  • 7
1
vote
1 answer

Excel 2010 VBA Custom Error Bar Minus Direction Error (Creating a boxplot)

I'm making a boxplot off a stacked column chart, and using minus and plus error bars to form the whiskers for my box plot. i referred to this to create a boxplot in Excel 2010 The code to create the plus direction error…
peejayjay
  • 29
  • 1
  • 7
1
vote
1 answer

ggplot structuring data boxplot of treatment effects in multiple time periods

I have data currently structured like so: set.seed(100) require(ggplot2) require(reshape2) d<-data.frame("ID" = 1:30, "Treatment1" = sample(0:1,30,replace = T, prob = c(0.5,0.5)), "Score1" = rnorm(30)^2, …
slap-a-da-bias
  • 376
  • 1
  • 6
  • 25
1
vote
1 answer

boxplot on groupby timegrouper without subplots using pandas

I am doing a groupby using pd.timegrouper on a time series dataset. When I am plotting a boxplot on this groupby object,it has subplots. I dont want to divide the plot area into subplots. I tried using the parameter subplots=False,but its throwing…
1
vote
1 answer

dplyr: categorical counts from a single column across multiple variables

So I have been trying to do a boxplot of "yes/no" counts for hours now. My dataset looks like this > stack Site Plot Treatment Meters Retrieved 2 Southern 18 Control -5.00 y 3 Southern 18 Control 9.55 y 4 …
Locean
  • 15
  • 3
1
vote
2 answers

Quantile calculations using R and GraphPad Prism

I'm new in R. Before using R, I used GraphPad Prism 7.0. Só now I'm trying to compare both as data processors. I founded a difference in the quantile calculations, so anyone know why they are differents?? In R i have par(pty="s", cex.axis=1, las=1,…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
1
vote
1 answer

ggplot geom_boxplot and plotting last value with geom_point

I'm new to R. I was trying to plot the last value of each variable in a data frame on top of a boxplot. Without success I was trying: ggplot(iris, aes(x=Species,y=Sepal.Length)) + geom_boxplot() + geom_point(iris, aes(x=unique(iris$Species),…
RedOakBill
  • 51
  • 1
  • 6
1
vote
1 answer

Why won't R overplot a point on a horizontal boxplot, but will on a vertical boxplot?

I have 2 boxplots on which I'd also like to include a point for the mean value. It appears that, when you include horizontal=TRUE as an argument, the points() function no longer draws a point on the boxplot. Here's my data: fired <-…
TheProletariat
  • 916
  • 2
  • 11
  • 23
1
vote
2 answers

Plotting boxplots for a groupby object

I would like to plot boxplots for several datasets based on a criterion. Imagine a dataframe similar to the example below: df = pd.DataFrame({'Group':[1,1,1,2,3,2,2,3,1,3],'M':np.random.rand(10),'F':np.random.rand(10)}) df = df[['Group','M','F']] …
durbachit
  • 4,626
  • 10
  • 36
  • 49
1
vote
0 answers

Changing default tooltip for boxplot outliers in ggiraph

In geom_boxplot of ggiraph by default the values are shown in tooltip for outliers. Is there a way to modify the tooltip for the outliers? We can change the tooltip for the plot using tooltip parameter. Is there a parameter to change the tooltip for…
SBista
  • 7,479
  • 1
  • 27
  • 58
1 2 3
99
100