violin-plot Questions

1

Solved

I have a very similar question to the one asked in Half violin plot with different factors in R which was perfectly answered by @AllanCameron. In addition to the data of the mentioned question I al...
Belga asked 15/9 at 18:15

1

Solved

I have data of a pre and a posttest in two groups: control and treatment. I computed the score and now want to illustrate the differences between groups and tests. As a basis I have a data frame in...
Lucretialucretius asked 26/8 at 10:54

3

Solved

Recently matplotlib has added a native support for violin plot. What I want to do is half-violin plot. I guess that it can be done changing the body the function is returning. Do you know how to pl...
Bedmate asked 21/4, 2015 at 15:6

5

Solved

I'd like to create a split violin density plot using ggplot, like the fourth example on this page of the seaborn documentation. Here is some data: set.seed(20160229) my_data = data.frame( y=c...
Mellisamellisent asked 1/3, 2016 at 7:49

2

Solved

My boxplot seem not align with the x-tick of the plot. How to make the boxplot align with the x-tick? import pandas as pd import seaborn as sns import matplotlib.pyplot as plt df = pd.DataFrame([[...
Disorientate asked 28/11, 2019 at 0:55

3

Solved

Is there a way to change the color of the violin plots in matplotlib? The default color is this "brownish" color, which is not too bad, but I'd like to color e.g., the first 3 violins differently ...
Cameroncameroon asked 10/10, 2014 at 3:26

3

Solved

Looking at the documentation about violon plots with seaborn, I would like to know how to plot two series of violin plots on the same axis (point 1) and that they are comparable (point 2). About p...
Cockatiel asked 21/11, 2017 at 9:3

2

Solved

I would like to have increasingly transparent violins in a seaborn.violinplot. I tried the following: import seaborn as sns tips = sns.load_dataset("tips") ax = sns.violinplot(x="d...
Dilapidation asked 26/6, 2020 at 15:26

2

Solved

I would like to have only one half of violin plots (similar to the plots created by stat_density_ridges from ggridges). A MWE library(ggplot2) dframe = data.frame(val = c(), group = c()) for(i in...
Carlin asked 27/8, 2018 at 7:42

2

Solved

require(ggplot2) require(cowplot) d = iris ggplot2::ggplot(d, aes(factor(0), Sepal.Length)) + geom_violin(fill="black", alpha=0.2, draw_quantiles = c(0.25, 0.5, 0.75) , colour = "red", size = 1...
Gordie asked 16/3, 2016 at 10:43

1

Solved

trying to figure out how to modify the line properties (color, thickness, style etc) of the quartiles in a seaborn violinplot. Example code from their website: import seaborn as sns sns.set(styl...
Cellophane asked 11/3, 2020 at 14:27

3

Solved

A following is used to generate the violin plot in ggplot2 : ggplot(violin,aes(x=variable,y=log(value+0.5),color=Group)) + geom_violin(scale="width") + geom_jitter(aes(group=Group), position=p...
Langevin asked 27/6, 2018 at 19:16

2

Solved

My violin plots are showing weird formats when using a log scale on my plots. I've tried using matplotlib and seaborn and I get very similar results. import matplotlib.pyplot as plt import seabor...
Tickle asked 8/2, 2020 at 22:30

1

Solved

I find violin plots very informative and useful, I use python library 'seaborn'. However, when applied to positive values, they nearly always show negative values at the lower end. I find this real...
Hugmetight asked 8/1, 2020 at 15:50

2

Solved

I would like to plot violin plots where x axis is exon however I want to group the plots. This works if its just violins however when I add in the jitters for some reason its not responding the cor...
Luedtke asked 10/8, 2019 at 19:22

1

The shape of violin plot is useful for visualizing data distribution of grouped data. The size of each group can also be visualized as the area of the 'violin'. But when the data is heterogeneous, ...
Waterhouse asked 9/10, 2018 at 12:1

1

Solved

I have a dataframe df with the following data. I want to plot the logCPM expression of the gene between two groups A and B. Samples Type GeneA Sample1 B 14.82995162 Sample2 B 12.90512275 Sample3 B...
Idalia asked 3/10, 2018 at 15:13

1

Solved

I'm trying to use ggplot to create a violin plot where instead of the widths of the violins being controlled by a density function, they directly represent the count of relevant elements. I think ...
Kelcie asked 14/8, 2018 at 18:4

2

Solved

I was trying to create a violin plot using a continuous variable factored in x. I currently have the x values of 0,3,5,8. When I plot them as a violin they show up equally spaced from each other. I...
Tablecloth asked 2/7, 2018 at 16:58

2

Solved

Using Seaborn, I can create a . Making it vertical is no problem. But I would like to have a horizontal violin plot. I saw that it is advised to just switch x and y when passing parameters in the v...
Aconite asked 14/2, 2018 at 12:9

2

Solved

I would like to annotate my violin plot with the number of observations in each group. So the question is essentially the same as this one, except: python instead of R, seaborn instead of ggplot...
Hairline asked 16/10, 2017 at 14:0

1

Solved

In a call to geom_violin within ggplot2, you can specify that the area of each violin should be proportional to the number of observations making up that violin by specifying scale="count". I assu...
Manvell asked 3/8, 2016 at 15:1

2

Solved

I have data I'm reading from an Excel spreadsheet. The data has a number of observations for each of six scenarios, S1 to S6. When I read in the data to my dataframe df, it looks as follows: Scen...
Seawards asked 11/4, 2017 at 12:13

1

Solved

For some reasons, the range of the plot is not accurate. In my data there are no negative values. When I set range to -100 to 100 there some portion of the distribution under 0 mark.
Valence asked 5/12, 2015 at 4:3

1

The following code gives me a very nice violinplot (and boxplot within). import numpy as np import seaborn as sns import matplotlib.pyplot as plt foo = np.random.rand(100) sns.violinplot(foo) pl...
Receiptor asked 23/1, 2015 at 17:42

© 2022 - 2024 — McMap. All rights reserved.