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
0
votes
0 answers

Problems with Joyplots in Python

I am trying to plot a .csv-file into a joy diagram in python, using the package 'joypy'. (in my code that's 'data'). For aesthetics I want the diagram to only show every tenth year on the label (that's age). Examples here: However, if I try to…
0
votes
1 answer

How to fill part of density curve in ggridges together with facets

I would like to color a specific area, where col_bol = 1 in a ggridges density curve plot. I know its possible to do this using stat_density_ridges() providing quantiles. If I dont have the quantiles I calculate the percent. This works if it's only…
MLEN
  • 2,162
  • 2
  • 20
  • 36
0
votes
1 answer

Add markings/labels to Ridgeline plot [R / ggplot2]

I've made a ridgeline plot, but I would like to add custom markers to it (pop in my added reprex). The best I can come up with is adding a label. This is not ideal. I found this link, which is more in line from what I want. but I can't get the…
Chiel
  • 47
  • 1
  • 8
0
votes
1 answer

In ggridges, how to colour code points without getting multiple ridges?

I'm trying to show points on my ridge plot by an index (PASS or FAIL in this case). But when I do that, I end up with two ridges per group. I am wondering how to have only one ridge per group? My code, and the image of output…
0
votes
1 answer

Calculate sample size of each ridge in a ridgeline plot

I want my sample size text on each of the ridge for the ridge plot below (on top right possible). Has anyone tried it with joyplot. import joypy range_P = [0,500,1000,1500,2000,2500,3000] labels = [('RZ for PRP.…
Ep1c1aN
  • 683
  • 9
  • 25
0
votes
1 answer

ggridges color gradient per group

I am trying to make a ridgeline plot with two groups and a color gradient within each group. So from dark blue to light blue for the Unionists and dark red to light red for the Indy group, for example. Thanks in…
0
votes
0 answers

Joyplot (Ridge Plot) for temporal sequences

I have two temporal sequences, let's say tweets per time of the day, for two different categories. I would like to plot them as a joyplot with as x axis the time of the day and as height the number of tweets. My code is: from joypy import…
Stefano
  • 276
  • 1
  • 8
0
votes
1 answer

Ridge plot curves not appearing in plot in r

I'm trying to recreate this ridge plot: https://i.stack.imgur.com/QAFs1.jpg However, I can't seem to be able to get the curves to show up on the plot, As you may have guessed I'm very new to r, so I pretty much copied…
user12126188
0
votes
1 answer

Are ridgeline plots possible in vega-lite?

Is it possible to make a plot like this in vega-lite? There doesn't seem to be any concept of three-dimensionality in the documentation. Is there some kind of workaround that would make overlapping plots like this possible?
0
votes
1 answer

Combining geom_vridgeline with geom_line in one plot

I would like to combine geom_vridgeline with a (connected) line chart. The values for geom_line (and geom_point) come from a different dataset. I.e. it is not a moment (mean, median etc.) of the observations used in geom_vridgeline. I tried the…
0
votes
1 answer

Adding y-axis on right side to Ridge Plot in Seaborn

I would like to add a sample y-axis tick on the right side of the Ridge plot, to know what is the range of values of all the plots. Preferably I would like to add it only to one of the subplots and not to all of them. My plot is based on the seaborn…
Julioolvera
  • 124
  • 1
  • 11
0
votes
2 answers

Why is this Joyplot code on matplotlib showing this error?

I wrote a simple code to start off with Joyplots on Matplotlib. Here's the entire code: import random import pandas as pd import numpy as np import matplotlib.pyplot as plt import joypy random.seed(4554) randomlist =…
Abhishek
  • 553
  • 2
  • 9
  • 26
0
votes
1 answer

Plot multiple density kernels (with area=1) for multiple groups over different time points with ggplot

I am trying to plot (in a single graph) two kernel densities (based on two samples with different sample sizes) for two different time points. Unfortunately, I can't manage to make the area under the curve equal to 1 in order for the densities to…
Pol
  • 1
  • 1
0
votes
3 answers

How to add unit to axis-label at 'ridge plot' from seaborn

I would like to do following based on the seaborn 'ridge plot' example (https://seaborn.pydata.org/examples/kde_ridgeplot.html): I want to add the unit to the x label of the x-axis, such that it appears as x in [m] in the plot. How do I do that?…
Luk-StackOverflow
  • 321
  • 1
  • 5
  • 10
0
votes
1 answer

R Coding for ggridges

I am new to coding in R so please excuse the simple question. I am trying to run ggridges geom in R to create monthly density plots. The code is below, but it creates a plot with the months in the wrong order: The code references a csv data file…
Ski bum
  • 41
  • 1
  • 1
  • 3