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
1
vote
0 answers

Recursively adding joypy.joyplot as subplot to one matplotlib plot

I have been using joypy for plotting what are called ridgeline/joy plots. I want to divide my dataframe equally into several parts, and recursively making each one of them as joy plot and adding them altogether for the ease of visualisation. Without…
Blue482
  • 2,926
  • 5
  • 29
  • 40
1
vote
1 answer

Ridgeline/Joyplot across a moving range

(Using Python 3.0) In increments of 0.25, I want to calculate and plot PDFs for the given data across specified ranges for easy visualization. Calculating the individual plot has been done thanks to the SO community, but I cannot quite get the…
1
vote
0 answers

seaborn joyplot does not fill all the way to the top

I'm using seaborn in Python 3.5. Taking the example joy plot from the gallery, modified slightly to save the figure: import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt sns.set(style="white",…
sammosummo
  • 495
  • 1
  • 7
  • 17
1
vote
0 answers

Plot df from survfit with ggjoy

I have created a survfit object km_sex and extract the information to a data frame res. library(ggjoy) res <- structure(list(time = c(0, 1, 2, 3), n.risk = c(31832, 29073, 28876, 28755), n.event = c(2759, 197, 121, 132), n.censor = c(0, 0, 0,…
xpto
  • 11
  • 3
1
vote
0 answers

ggplot2 , ggridges , Error in -x : invalid argument to unary operator

I'm trying to plot a joyplot graph( density distributions across time) from the ggridges package. The file 'Dados empilhados' is a pooled data set. library(ggridges) library(ggplot2) library(XLConnect) data = loadWorkbook('Dados…
1
vote
1 answer

Demo of Joypy (joyplots in python) not working?

I'm working off the NBA example in: http://sbebo.github.io/blog/blog/2017/08/01/joypy/ I follow the instructions, but my plot does not have the proper colormap. Every one of my histograms is the lowest value on the colormap (yellow in this case).…
Dan Fiorino
  • 388
  • 1
  • 3
  • 17
1
vote
0 answers

How to get a smooth rim line in my ggjoy plot in R?

I am using the ggjoy package to make a joy plot in R, My problem is that the lines forming the rims of the density plots look jagged. I want my plot to have smooth curves like the one below: My current R code is as follows: library (ggjoy) p <-…
user3115933
  • 4,303
  • 15
  • 54
  • 94
0
votes
0 answers

How i can solve it 'layout' objects don't have these attributes: 'violinmode'

My code is if (selected_chart_type == "RidgeLine Plot") { fig <- plot_ly(data = age_group_populations, x = ~t04cp02, y = ~t04v01, color = ~t04tehname, type = "violin", colors = color_palette) %>% layout(title = paste("District…
Zawish
  • 1
0
votes
1 answer

R Ridgeline plot with multiple PDFs can be overlayed at same level

How can I create a ridgeline plot where multiple densities can be overlayed at the same ordinate and distinguished by color? My real dataset is the actual PDF. For a minimum reproducible example, I generate distributions and extract the PDFs to use…
a11
  • 3,122
  • 4
  • 27
  • 66
0
votes
1 answer

How do you customize ridgeline plots (joyplots) or stacked area plots in R to display frequencies instead of densities?

I am trying to create a ridgeline plot-type figure that displays count data on the Y-axis over time on the X-axis for individual years, stacked atop each other in a ridgeline plot (joyplot) type format. However, R only seems capable of supporting…
mmi
  • 1
  • 1
0
votes
1 answer

height of ridgeline plot not scaling to data

I have two distributions that are moving in opposite directions over time - foo1 is going up, and foo2 is going down. However, the max value of foo1 is only half the min value of foo2. Is there a way to capture this difference in…
user237554
  • 79
  • 8
0
votes
2 answers

Make joyplot/ridgeline plot using dates as the x-axis

I am plotting a joyplot where the x-axis is a range of dates. However, joyplot only accepts dates arguments as numbers... As a result, the chart is plotted correctly, but the x-axis displays dates as their serial number, which is not very friendly…
M_B
  • 47
  • 7
0
votes
1 answer

Removing NAs from Ridgeline ggplot in R

I'm fairly new to R and using this forum, so I apologize for any lack of info and specificity in my question, but how do I remove the NAs from my ridgeline ggplot graph? Here is what I have so far, as well as a link to the picture of my…
0
votes
1 answer

Adding a secondary axis to ggplot2 ggridges (joyplot) to show counts in each bin

I have a ridge plot made with the ggridges package, using the stat = 'binline' argument to plot a histogram for each group. I would like to show the counts for each group on a secondary y-axis at left, with at least one or two axis ticks per group.…
qdread
  • 3,389
  • 19
  • 36
0
votes
1 answer

Non-overlapping ridgeline plot R

Hi everyone I was looking at some ridgeline plots in R, more specifically in the post "Introduction to ggridges", and my goal is to make this plot but without the overlap: library(ggplot2) library(ggridges) ggplot(iris, aes(x = Sepal.Length, y =…
mauron
  • 9
  • 2