Re: [R] ggplot / second axis / just a notation problem

2017-10-17 Thread John
Yes, I did. I should have posted the results here. "~./5" works, but "~.-3" does not. Multiplication and division should work; I am wondering how I should present the plus and the minus in this context. Thanks, John 2017-10-17 2:47 GMT-07:00 Eric Berger : > Hi John, > Why not just try both and

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] greport

2017-10-17 Thread David Winsemius
> On Oct 17, 2017, at 10:32 AM, Andreas Betz wrote: > > Hello, > > I am trying to setup grereport by Frank Harell on my Fedora system. > Unfortunately some links for latex on the homepage are disabled. Thus I > cannot find ocgtools for Fedora. Have you tried searching on google? The first hi

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

[R] greport

2017-10-17 Thread Andreas Betz
Hello, I am trying to setup grereport by Frank Harell on my Fedora system. Unfortunately some links for latex on the homepage are disabled. Thus I cannot find ocgtools for Fedora. Further Acrobat reader has not been updated after 2013. Can somebody give me some pointers how to set up the packag

[R] regex in maps package

2017-10-17 Thread Ashim Kapoor
Dear All, >From : ?maps::map we have : map(database = "world", regions = ".", exact = FALSE, boundary = TRUE, interior = TRUE, projection = "", parameters = NULL, orientation = NULL, fill = FALSE, col = 1, plot = TRUE, add = FALSE, namesonly = FALSE, xlim = NULL, ylim

Re: [R] ggplot / second axis / just a notation problem

2017-10-17 Thread Eric Berger
Hi John, Why not just try both and see which one makes sense? On Tue, Oct 17, 2017 at 12:24 PM, John wrote: > Hi, > >I have a question on ggplot2 with the second axis, but I don't think one > needs to know ggplot2 package in order to answer this question. > >In this example, > https://r

[R] ggplot / second axis / just a notation problem

2017-10-17 Thread John
Hi, I have a question on ggplot2 with the second axis, but I don't think one needs to know ggplot2 package in order to answer this question. In this example, https://rpubs.com/MarkusLoew/226759 since the transformation of the second axis is given by y1=y2*5, # p <- p + scale_y_con