Re: [R] ggridges help

2017-10-17 Thread Roy Mendelssohn - NOAA Federal
Perfect, thank you. I find the Unix style help usual in R is really only helpful once you know what everything is doing. That makes a good vignette, that shows what all of the options do in a careful way, really important. Thanks again. -Roy > On Oct 17, 2017, at 2:01 PM, William Dunlap

Re: [R] ggridges help

2017-10-17 Thread William Dunlap via R-help
The min_height = -0.25 is there to make it show cycle values down to -1/4. You may want to change it to -1 so it shows more of the cycle values. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Oct 17, 2017 at 1:26 PM, Roy Mendelssohn - NOAA Federal < roy.mendelss...@noaa.gov> wrote: > yes,

Re: [R] ggridges help

2017-10-17 Thread Roy Mendelssohn - NOAA Federal
yes, thanks, and I was getting close to that. One thing I found is the manual says the height is the distance above the y-line, which should be, but doesn't have to be positive. In fact, the time series are estimates of a cycle, and has negative values, which unfortunately are not includ

Re: [R] ggridges help

2017-10-17 Thread William Dunlap via R-help
Does the following work for you? ggplot2::ggplot(plotFrame, aes(x = time, y = depth, height = cycle, group = depth)) + ggridges::geom_ridgeline(fill="red", min_height=-0.25) Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Oct 17, 2017 at 12:43 PM, Roy Mendelssohn - NOAA Federal < roy.me

Re: [R] ggridges help

2017-10-17 Thread Roy Mendelssohn - NOAA Federal
I have tried: ggplot(plotFrame, aes(x = time, y = cycle, height = cycle, group = depth)) + geom_ridgeline() ggplot(plotFrame, aes(x = time, y = depth, height = cycle, group = depth)) + geom_ridgeline() ggplot(plotFrame, aes(x = time, y = depth, group = depth)) + geom_density_ridges() none are

Re: [R] ggridges help

2017-10-17 Thread Bert Gunter
...and your question is...? ... and the code you tried that didn't work was? Bert On Oct 17, 2017 12:22 PM, "Roy Mendelssohn - NOAA Federal" < roy.mendelss...@noaa.gov> wrote: > Hi All: > > I am just not understanding ggridges. The data I have are time series at > different depths in the ocean

[R] ggridges help

2017-10-17 Thread Roy Mendelssohn - NOAA Federal
Hi All: I am just not understanding ggridges. The data I have are time series at different depths in the ocean. I want to make a joy plot of the time series by depth. If I was just doing a ggplot2 line plot I would be doing: ggplot(plotFrame, aes(x = time, y = cycle, group = depth)) + geom_l