Skip to main content
3 votes
1 answer
158 views

I am trying to make a half-violin plot. I want to add the significant differences as brackets above the halves, with an asterisk indicating significance. Because I want to group the data into two ...
Gabriel's user avatar
  • 131
1 vote
1 answer
92 views

I am looking for a way to implement horizontal segments inside a violin-plot in R. I attach an image displaying how I need the plot to look like. I tried using ggplot2, which I am fairly experienced ...
Rene Bults's user avatar
3 votes
1 answer
115 views

The code below creates violin plots grouped by mean values. I'm currently plotting these grouped violin plots next to each other using subplots. How would I modify the code to get them to plot onto a ...
user31119379's user avatar
1 vote
1 answer
80 views

I'm using stat_ydensity (co-opted from the violin plot) to shade bar density using color rather than size. This code does what I need, when using a single category: library(tidyverse) set.seed(100) n &...
Jaken's user avatar
  • 601
1 vote
2 answers
111 views

I need to create a violin plot based on two categories. But, some of the combination of categories are not available in the data. So it creates a white space, when i try to make the plot. I remember ...
Samrat's user avatar
  • 109
1 vote
1 answer
45 views

I have ran into a problem with using ggpubr::stat_pvalue_manual with a ggplot2 violin plot that has a fill aspect. There is either an issue of the fill aspect group not being found as an object or the ...
bribina's user avatar
  • 89
1 vote
0 answers
31 views

I have a dataframe for which I am plotting violin plot. The dataframe has two categories A and B and highly imbalance data (one df has 1000 samples/rows and other has 200). I want to compare both ...
eshaa's user avatar
  • 585
0 votes
1 answer
76 views

I could manage to construct a line plot as required with ggplot2, but I couldn't replicate the same using ggstatsplot, a package that has many aesthetically pleasing defaults I am attaching the ...
Muhammad Aaqib Shamim's user avatar
0 votes
2 answers
447 views

I have some code that creates a violin plots (with 10 violins) using Seaborn: sns.violinplot(data=chain[:, -10:], ax=ax, inner=None, linewidth=1) ax.set_xticks(np.arange(10)) # Adds spacing between ...
user1551817's user avatar
  • 7,581
0 votes
1 answer
107 views

I'm using matplotlib's violinplot and I'd like to see the frequency values in the X axis. This is my MWE: import numpy as np import matplotlib.pyplot as plt data = np.random.normal(size=100) plt....
Didac Busquets's user avatar
0 votes
1 answer
48 views

My codes are as follows: import matplotlib.pyplot as plt import numpy as np data_to_plot = [avg[0]['Cell Perimeter (unit pixel side)'], avg[1]['Cell Perimeter (unit pixel side)'], avg[2]['Cell ...
eu tube's user avatar
2 votes
0 answers
11 views

I am visualising the data for the bill depth for these birds for 1976 and 1978. I want a single figure showing boxplot + datapoints, next to the half violin plot, for each year. I have managed to get ...
user28437707's user avatar
1 vote
1 answer
63 views

I have a violin+boxplots plot I do with the iris data as an example, like this: data(iris) iris_long <- as.data.frame(tidyr::pivot_longer(iris, -Species, names_to = "variable", values_to =...
DaniCee's user avatar
  • 3,257
1 vote
1 answer
129 views

I want to create a flipped violin plot (with extra points for group means in geom_point() and lines from min to max values in geom_segment() ). I integrated the groups as facets with facet_grid(). The ...
Anneistrying's user avatar
0 votes
2 answers
154 views

I would like to draw on the same plot a curve and some violin plots. Is it possible ? For now, I'm only able to draw them separately, one of the top of the other as in the example code. Here is an ...
Ccile's user avatar
  • 223

15 30 50 per page
1
2 3 4 5
27