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
2
votes
1 answer

x-axis on joy plot shows incorrect values

I am new to making joy plots in R. Below is a plot I made with some simulated data. I'm confused though, because my data variable foo contains no negative values, but the resulting plot would indicate so: library(ggjoy) p <- ggplot(results,…
aindap
  • 71
  • 4
1
vote
1 answer

R vertical ridgeline plot, error on width and stat parameters

How can I reformat this ridgeline plot so that is a vertical ridgeline plot? My real dataset is the actual PDF. For a minimum reproducible example, I generate distributions and extract the PDFs to use in a dummy function. The dataframe has a model…
a11
  • 3,122
  • 4
  • 27
  • 66
1
vote
2 answers

Is there a way to add a vertical line to a ridgeline plot that is not a quartile or a fixed % value for each ridge?

I did an analysis on my fantasy baseball league, where I had every team play every other team's schedules, to determine their schedule variance and who maybe is luckier than other's based on the schedule. I am plotting the number of wins vs each…
1
vote
1 answer

How to plot two joyplots on the same plot?

I want to create ridgelines plots for the distribution of property Rg as it changes with temperature. It turns out that I have an attribute Z that changes too, so I want the distribution of Rg at a given condition, for both attributes Z1 and Z2. I…
bad_chemist
  • 283
  • 1
  • 7
1
vote
2 answers

Add a y-axis with density to ridgeline plot

I struggle to add a y-axis to my ridgeline plot which depicts the density. If I got it right a ridgeline plot is a kind of density plot. I used it in instead of a boxplot and also included quantile lines. I like it in the way it is, however my…
T.Tree
  • 91
  • 5
1
vote
0 answers

Pandas histogram plot with Y axis or colorbar

In Pandas, I am trying to generate a Ridgeline plot for which the density values are shown (either as Y axis or color-ramp). I am using the Joyplot but any other alternative ways are fine. So, first I created the Ridge plot to show the different…
1
vote
1 answer

Add points to geom_density_ridges for groups with small number of observations

I am loving using geom_density_ridges(), with individual points also included for each group. However, some groups have small sample sizes (e.g. n=1 or 2) precluding the generation of the density ridges. For these groups, I'd like to be able to plot…
1
vote
1 answer

Weight ggridges by another variable

I'm trying to visualize some data with a ridge plot, but I'm wondering if there's a way I can weight the densities of the ridges. Basically I have the following: set.seed(1) example <- data.frame(matrix(nrow=100,ncol=3)) colnames(example) <-…
Jake L
  • 987
  • 9
  • 21
1
vote
0 answers

R / ggplot2: Add directlabels to ridgeline plot

I'm trying to add directlabels to lines of a ridgeline plot created by ggridges. It seems directlabels doesn't know what to apply the labels to. Is it possible to specify this? Or are the two packages incompatible? # does not…
Timm S.
  • 5,135
  • 6
  • 24
  • 38
1
vote
0 answers

adding means to geom_density_ridges

I'm am trying to add means to a geom_density_ridge ggplot. I've been working off a very similar question (Adding a mean to geom_density_ridges). I can generate means for my ridges, but they are misplaced. I'm pretty certain that this is because I…
1
vote
1 answer

How to change colormap in joypy plot?

I have a dataframe which looks like this: Team Minute Type 148 12 1 148 22 1 143 27 1 148 29 1 143 32 1 143 32 1 I created a joyplot using the Python library joypy fig,…
Abhishek
  • 553
  • 2
  • 9
  • 26
1
vote
0 answers

How to fill colour in each individual density curve within a ridgeline plot

I want to specify the colour for each density in a ridgeline plot in R. I am using ggplot2 and ggridges. I have tried the following here to produce a ridge plot, with no colours: seq_plot_alt <- ggplot(seq_df, aes(x=x, y=as.factor(beta), fill =…
user-2147482565
  • 453
  • 7
  • 16
1
vote
1 answer

How to add geom_segment to geom_density_ridges_gradient?

I would like to add vertical segments to a ridgeline plot whose histograms show customized quantiles. I managed to get the vertical segments if I map fill color with ..x... But I would like to show quantiles in the density plots. I wrote the…
Andres
  • 13
  • 5
1
vote
1 answer

Trouble Plotting a Ridge Plot in Seaborn

I have a dataframe hour_dist that shows the hour a customer showed up to a particular location. hour_dist.sample(5) Location Hour 88131 1233000000000000 21 111274 1233000000000000 0 81126 2991000000000000 23 104181 …
CGul
  • 147
  • 1
  • 3
  • 11
1
vote
1 answer

Negative values in joy plot from non-negative data set

I am creating a joyplot using joypy. All my data is between[0,1]. But I get a big range of negative values in the graph: import joypy import pandas as pd from matplotlib import pyplot as plt from matplotlib import cm import matplotlib.ticker as…
Benny Ae
  • 1,897
  • 7
  • 25
  • 37