Questions tagged [ridgeline-plot]

For questions about creating a Ridgeline plot, sometimes called a Joyplot. When using this tag also tag the language you are coding in for context. Where applicable please also tag any third party package(s) you are using for context.

78 questions
3
votes
0 answers

Is there a row equivalent to the 'col_wrap' parameter in seaborn's FacetGrid?

I am making a ridge plot using seaborn in python (following this example). In my case however, I have a lot more than 10 distributions, so I'd like to have multiple columns of histograms. This all gets set up using this FacetGrid command: g =…
Chris Gordon
  • 191
  • 3
  • 13
3
votes
0 answers

Labels and plot overlapping

Is there is a way for the plot to not overlap with long labels of y axis in a ridge plot (seaborn). I am using the code of the example seaborn (slighty edited) in order to understand what I mean. Thanks for any help. import numpy as np import…
3
votes
1 answer

Reverse order of breaks in ggplot, ggridges

I have a dataset with Length (integer) and Year (factor) that I want to plot using ggridges. Here is an analogous dataset with integer and factor data. How do I change the order of Species (i.e. factor) on the…
KVininska
  • 107
  • 1
  • 6
3
votes
2 answers

Set x axis labels for joyplot

I have written the code below to visualise a joyplot. When trying to change the x axis labels using axes.set_xticks, I get the error: AttributeError: 'list' object has no attribute 'set_xticks' import joypy import pandas as pd from matplotlib import…
Simon Lindgren
  • 2,011
  • 12
  • 32
  • 46
2
votes
2 answers

Unable to colour jittered points in geom_density_ridges

I'm trying to colour specific points within a ridge plot, but the points I am trying to highlight aren't displayed nor are they in the legend. In this example I am trying to highlight the points with labels "X" and "Y" withing ridges based on groups…
Anton
  • 23
  • 3
2
votes
1 answer

Different colors in Altair Ridgeline plot

It's an extension to my previous question about the Altair Ridgeline plot. I have a plot which created like this: import pandas as np import numpy as np source = pd.DataFrame(columns=list('ab')) source['a'] =…
maria
  • 494
  • 4
  • 13
2
votes
1 answer

Reorder histograms on a ridgeline plot

I am trying to construct a ridgeline plot using joypy. I have a dataframe with 2 columns: one of the columns represents the names of the samples and the other the values to be plotted: sampleName value C -11 C -12 C …
akkab
  • 401
  • 1
  • 6
  • 19
2
votes
0 answers

Add gradient color scheme to Joypy plots

I was wondering that if anyone has ever tried to use a gradient colour scheme for each plot using joypy (not the whole joyplot color gradient like this)? If someone has some pointers, please tell me. I tried using matplotlib.patches following an…
Ep1c1aN
  • 683
  • 9
  • 25
2
votes
1 answer

Add shaded region across all panels in ridgeline plot

I have a dataframe df: set.seed(3467) df<- data.frame(method= c(rep("A", 1000), rep("B", 1000), rep("C", 1000)), beta=c(rnorm(1000, mean=0, sd=1),rnorm(1000, mean=2, sd=1.4),rnorm(1000, mean=0, sd=0.5))) I wish to create a ridge…
Danielle
  • 785
  • 7
  • 15
2
votes
1 answer

How to make these sequential histogram/density estimates plots

Does anyone know how to make these sequential histogram/density estimates plots (source) in R or Python? I think I've also heard them called "waterfall" plots and "cascade" plots. It also kind of looks like the cover art of Joy Division's "Unknown…
Taylor
  • 1,797
  • 4
  • 26
  • 51
2
votes
1 answer

Lines overlapping in R with ggridges

I use ggridges in R to visualize my data. But a lot of the lines are overlapping and are hard to read. My code is: ggplot(task1, aes(x = ibu, y = style, fill = style)) + geom_density_ridges(alpha=1) + theme_ridges() + theme(legend.position =…
iilla
  • 105
  • 7
2
votes
2 answers

Add y-axis label to ridgeline plot with seaborn

I want to add a y-axis label to a density ridgeline plot using seaborn in python. To make the ridgeline plot, I am following the code from the seaborn gallery. For convenience, I have copied their code snippet below. How should I modify this to…
Josh W.
  • 1,123
  • 1
  • 10
  • 17
2
votes
1 answer

Assigning specific colors to specific cases in ridgeline plots in R

Recently this community helped me tremendously with getting Ridgeline plots to work with my data. Now I am struggling with coloring them according to my needs. Basically what I want is plotting my cases in different orders but they should keep a…
Klaus Peter
  • 125
  • 7
2
votes
2 answers

Plotting normal distributions in a ridgeline plot with ggridges

I'm a little embarrassed to ask this question but I've spent the better part of my work day trying to find a solution, yet and here I am... What I'm aiming for is a simple ridgeline plot of several normal distributions which are calculated from…
Klaus Peter
  • 125
  • 7
2
votes
1 answer

R: Weighted Joyplot/Ridgeplot/Density Plot?

I am trying to create a joyplot using the ggridges package (based on ggplot2). The general idea is that a joyplot creates nicely scaled stacked density plots. However, I cannot seem to produce one of these using weighted density. Is there some way…
socialscientist
  • 3,759
  • 5
  • 23
  • 58