You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a ridgeline plot where I display the full distribution and the tail of the distribution side-by-side. I am requesting a feature where you can "zoom in" on the tail of distributions without altering the estimated density function. You can currently do this for the x-axis using coord_cartesian, but it is not possible at the moment to do that on the height of each distribution. This feature would be really helpful for people who are working with large datasets which follow power law-like distributions in their tails and who want to visualize the extremes of their distributions. This is a common situation in working with text data, for example. I've created two examples below:
An example of the feature I would like ggridges to have, but with a single density plot
An example of what ggridges can currently do (as far as I've been able to tell)
The figure shows that the tail of the density has not been re-normalized. It maintains the shape and area from the original figure, we've just zoomed in on both the x and y axis.
GG Ridges Examples
In this example I've added an additional aesthetic mapping, as that helps underscore why this would be helpful. I've created a binary variable to map to the fill aesthetic.
With ggridges you can't zoom in on the height of each ridgeline, as coord_cartesian() only accepts x and y limits. Here it doesn't really matter because there are so few observations (so you can still see and make sense of the tails), but once we increase the observations as well as the number of ridgelines it becomes difficult.
If there could be a feature built that would allow you to zoom in on the "height" of each ridgeline it would be really helpful.
Thanks! And thanks for building such a fantastic package.
The text was updated successfully, but these errors were encountered:
I'm trying to create a ridgeline plot where I display the full distribution and the tail of the distribution side-by-side. I am requesting a feature where you can "zoom in" on the tail of distributions without altering the estimated density function. You can currently do this for the x-axis using coord_cartesian, but it is not possible at the moment to do that on the height of each distribution. This feature would be really helpful for people who are working with large datasets which follow power law-like distributions in their tails and who want to visualize the extremes of their distributions. This is a common situation in working with text data, for example. I've created two examples below:
Single Density Example
The figure shows that the tail of the density has not been re-normalized. It maintains the shape and area from the original figure, we've just zoomed in on both the x and y axis.
GG Ridges Examples
In this example I've added an additional aesthetic mapping, as that helps underscore why this would be helpful. I've created a binary variable to map to the fill aesthetic.
With ggridges you can't zoom in on the height of each ridgeline, as coord_cartesian() only accepts x and y limits. Here it doesn't really matter because there are so few observations (so you can still see and make sense of the tails), but once we increase the observations as well as the number of ridgelines it becomes difficult.
If there could be a feature built that would allow you to zoom in on the "height" of each ridgeline it would be really helpful.
Thanks! And thanks for building such a fantastic package.
The text was updated successfully, but these errors were encountered: