boxplot

Confidence Interval for a Seaborn Boxplot

这一生的挚爱 提交于 2019-12-25 10:06:05
问题 I see that I can set a specific confidence interval on a seaboard point plot https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.pointplot.html however, for the 'notch' attribute on the seaboard box plot there seems to be no flexibility for the user to Specify the CI. Is there a way to do this? What is the confidence level of the default seaborn box plot notch? 回答1: seaborn relies on boxplot provided by matplotlib - see docs. The default is 95%, but here's an example how to

Change whisker definition for only one level of a factor in `geom_boxplot`

痞子三分冷 提交于 2019-12-25 08:48:08
问题 I'm trying to change the whisker definition to extend to the minimum and maximum ( i.e. , not to consider anything as an outlier), as in this question, but only for a single level of the factor that is mapped to the x-axis. The code in that answer will change the whisker definition for the entire plot. What's the proper way, if any, to go about this? 回答1: Extending the example linked in the question, you could do something like: f <- function(x) { r <- quantile(x, probs = c(0.05, 0.25, 0.5, 0

A difference-in-difference boxplot-like plot in Matlab

纵然是瞬间 提交于 2019-12-25 07:24:11
问题 I am interested in creating a plot like this in Matlab. (source: 3rs-reduction.co.uk) By "like this" I mean that I wish to have a two groups, call them A and B, observed twice, pretreatment and post-treatment, where the plot consists of a left group of the box plots of A and B at time pretreatment and the right group consists of boxplots of A and B at time post-treatment, and where the mean of A pre is linked by a line to mean of A post and the mean of B pre is linked by a line to mean of B

How to change the order of x-axis in multiple boxplots in R

时光怂恿深爱的人放手 提交于 2019-12-25 05:14:28
问题 I am trying to change the order x-axis in this boxplot. [Now the order is loupe, microscope and video, and I want to change it to microscope, loupe then video] The dataframe example is like this Label Mental Physical Temporal Performance Effort Frustration sum Microscope 10 10 10 10 10 10 60 Microscope 10 10 10 10 10 10 60 Loupe 20 20 20 20 20 20 120 Loupe 20 20 20 20 20 20 120 Video 15 15 15 20 20 20 105 Video 15 15 15 20 20 20 105 This is boxplot i have right now boxplot1 This is my code

How to change the order of x-axis in multiple boxplots in R

时光怂恿深爱的人放手 提交于 2019-12-25 05:14:14
问题 I am trying to change the order x-axis in this boxplot. [Now the order is loupe, microscope and video, and I want to change it to microscope, loupe then video] The dataframe example is like this Label Mental Physical Temporal Performance Effort Frustration sum Microscope 10 10 10 10 10 10 60 Microscope 10 10 10 10 10 10 60 Loupe 20 20 20 20 20 20 120 Loupe 20 20 20 20 20 20 120 Video 15 15 15 20 20 20 105 Video 15 15 15 20 20 20 105 This is boxplot i have right now boxplot1 This is my code

Pandas secondary y axis for boxplots

走远了吗. 提交于 2019-12-25 03:33:03
问题 I'd like to use a secondary y-axis for some boxplots in pandas, but it doesn't seem available. import numpy as np import pandas as pd data = np.random.random((10, 5)) data[:,-1] += 10 # offset one column df = pd.DataFrame(data) Now, using the default line plot it's easy enough to plot to a second y-axis: df.plot(kind='line', secondary_y=[4]) But if I use boxplot style, it doesn't work: df.plot(kind='box', secondary_y=[4]) Is there any way (maybe through matplotlib) I can get pandas to plot 2

How to make combination in drilldown in highcharts / add outliers in boxplot in drilldown?

故事扮演 提交于 2019-12-25 00:35:55
问题 I asked one question recently, but this is a new, relevant yet total different one. I would like to add outliers in boxplot which is in drilldown. I am able to do that in primary plot, in a combination way that boxplot is in one series while outliers are in another series as 'scatter'. As in follows: series : [ {type : 'boxplot' , ...} , {type : 'scatter' ,...} ] But as now my boxplot is in drilldown, whose series denotes different drilldowns/figures, I can not add outliers in boxplot. As in

Ploting box plot from statistical summary data

巧了我就是萌 提交于 2019-12-25 00:29:39
问题 I would like to add a box plot to my page. Something like this (using Plotly.js). The problem with implementing the example from the link above is that the plotly.js library expect all the points, whereas I only have access to the already computed statistical data. In other words, I would like to plot the graphic by passing max , min , med , avr , stdev (statistical data of the series) instead of all the data points themselves. P.s.: Using plotly.js is not a requirement. I could go with D3.js

ggplot::geom_boxplot() How to change the width of one box group in R

自古美人都是妖i 提交于 2019-12-24 19:49:02
问题 I want to adapt the width of the box in the category "random" to the same width of the other boxes in the plot. It is now a single group, whereas the other groups contain two subgroups... Any ideas on how to do that? Using geom_boxplot(width=0.2) just changes the width of all boxes. So far I used the following code: ggplot(TablePerCatchmentAndYear,aes(x=NoiseType, y= POA, fill = TempRes)) + geom_boxplot(lwd=0.05) + ylim(c(-1.25, 1)) + theme(legend.position='bottom') + ggtitle('title')+ scale

How to remove dots and extend boxplots in ggplot2 [duplicate]

▼魔方 西西 提交于 2019-12-24 17:53:23
问题 This question already has an answer here : ggplot2 - Boxplot Whiskers at Min/Max (1 answer) Closed 3 years ago . I have some data that I'm trying to build some boxplots with, but I'm getting this error: Warning message: Removed 1631 rows containing non-finite values (stat_boxplot). There are no NA values and all the data seems fine. How can I fix this as these are certainly valuable points in my data and should be extended by the whiskers? Data The data is fairly large, and I couldn't get a