boxplot

Python: seaborn pointplot and boxplot in one plot but shifted on the x-axis

放肆的年华 提交于 2020-01-05 11:14:14
问题 I want to plot both a boxplot and the mean in one figure. So far my plot looks like this using these lines of code: sns.swarmplot(x="stimulus", y="data", data=spi_num.astype(np.float), edgecolor="black", linewidth=.9) sns.boxplot(x="stimulus", y="data", data=spi_num.astype(np.float), saturation=1) sns.pointplot(x="stimulus", y="data", data=spi_num.astype(np.float), linestyles='', scale=1, color='k', errwidth=1.5, capsize=0.2, markers='x') sns.pointplot(x="stimulus", y="data", data=spi_num

Python: seaborn pointplot and boxplot in one plot but shifted on the x-axis

有些话、适合烂在心里 提交于 2020-01-05 11:12:14
问题 I want to plot both a boxplot and the mean in one figure. So far my plot looks like this using these lines of code: sns.swarmplot(x="stimulus", y="data", data=spi_num.astype(np.float), edgecolor="black", linewidth=.9) sns.boxplot(x="stimulus", y="data", data=spi_num.astype(np.float), saturation=1) sns.pointplot(x="stimulus", y="data", data=spi_num.astype(np.float), linestyles='', scale=1, color='k', errwidth=1.5, capsize=0.2, markers='x') sns.pointplot(x="stimulus", y="data", data=spi_num

Python: seaborn pointplot and boxplot in one plot but shifted on the x-axis

梦想与她 提交于 2020-01-05 11:12:08
问题 I want to plot both a boxplot and the mean in one figure. So far my plot looks like this using these lines of code: sns.swarmplot(x="stimulus", y="data", data=spi_num.astype(np.float), edgecolor="black", linewidth=.9) sns.boxplot(x="stimulus", y="data", data=spi_num.astype(np.float), saturation=1) sns.pointplot(x="stimulus", y="data", data=spi_num.astype(np.float), linestyles='', scale=1, color='k', errwidth=1.5, capsize=0.2, markers='x') sns.pointplot(x="stimulus", y="data", data=spi_num

How to make highcharts boxplot with drilldown?

[亡魂溺海] 提交于 2020-01-05 08:32:11
问题 I am new with highcharts and javascript. I am trying to make a boxplot with drilldown. Chart type 'boxplot' requires data to be a array of 5 element(min 1st-quatile median 3st-quatile max), as follows: data: [ [760, 801, 848, 895, 965], [733, 853, 939, 980, 1080], [834, 836, 864, 882, 910] ] While drilldown requires that data should have many members, including "drilldown" member, as follow: data: [{ name: 'namey', y: 49.9, drilldown: 'tokyo 1' }, { y: 71.5, name: 'namex', drilldown: 'tokyo 2

How to make highcharts boxplot with drilldown?

点点圈 提交于 2020-01-05 08:31:36
问题 I am new with highcharts and javascript. I am trying to make a boxplot with drilldown. Chart type 'boxplot' requires data to be a array of 5 element(min 1st-quatile median 3st-quatile max), as follows: data: [ [760, 801, 848, 895, 965], [733, 853, 939, 980, 1080], [834, 836, 864, 882, 910] ] While drilldown requires that data should have many members, including "drilldown" member, as follow: data: [{ name: 'namey', y: 49.9, drilldown: 'tokyo 1' }, { y: 71.5, name: 'namex', drilldown: 'tokyo 2

add boxplot to other graph in python

自闭症网瘾萝莉.ら 提交于 2020-01-04 14:05:32
问题 These two graphs have exactly the same x axis value of each point, is it possible to display the box whisker on top of the first graph? I tried this: fig1 = plt.figure() ax = fig1.add_subplot(211) ax.set_xscale('log') ax.plot(x7,y7,'c+-') ax.plot(x8,y8,'m+-') ax.plot(x9,y9,'g+-') ax.boxplot(dataset) xtickNames = plt.setp(ax, xticklabels=boxx) plt.setp(xtickNames) The results only display the box whisker graph without the other three lines, so, I tried this instead: fig1 = plt.figure() ax =

ggplot boxplots with scatterplot overlay (same variables)

此生再无相见时 提交于 2020-01-03 03:16:21
问题 I'm an undergrad researcher and I've been teaching myself R over the past few months. I just started trying ggplot, and have run into some trouble. I've made a series of boxplots looking at the depth of fish at different acoustic receiver stations. I'd like to add a scatterplot that shows the depths of the receiver stations. This is what I have so far: data <- read.csv(".....MPS.csv", header=TRUE) df <- data.frame(f1=factor(data$Tagging.location), #$ f2=factor(data$Station),data$Detection

boxplot of vectors with different length

主宰稳场 提交于 2020-01-02 02:28:06
问题 I have a matrix of 2 columns. I would like boxplot each of these columns but each has different number of entries. For example, first column has 10 entries and the second column has 7 entries. The remaining 3 of the second column is given zero. I would like to plot these side by side for comparison reasons. Is there a way to tell R to boxplot the whole column 1 and only the first 7 entry for column 2? 回答1: You could simply index the values you want, for example ## dummy version of your data

R ggplot boxplot: change y-axis limit

你离开我真会死。 提交于 2020-01-01 09:05:17
问题 I'm using ggplot to create sevral boxplots from the following data: df<-(structure(list(Effect2 = c("A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A2", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A1", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3", "A3",

Tweaking seaborn.boxplot

落爺英雄遲暮 提交于 2019-12-31 08:54:07
问题 I would like to compare a set of distributions of scores ( score ), grouped by some categories ( centrality ) and colored by some other ( model ). I've tried the following with seaborn: plt.figure(figsize=(14,6)) seaborn.boxplot(x="centrality", y="score", hue="model", data=data, palette=seaborn.color_palette("husl", len(models) +1)) seaborn.despine(offset=10, trim=True) plt.savefig("/home/i11/staudt/Eval/properties-replication-test.pdf", bbox_inches="tight") There are some problems I have