Rather annoyingly RInside and Rcpp do not support MS Visual C and so we cannot support this on WindowsThe whole QT5.6 mandating MSVC is rather a big problem and there is not a lot we can do about it
Just letting you know the effort to get this done is appreciated. Thanks.
Mike
Awesome! Will the R functionality be in the next development release?
Have just added support for compare mode; you can get a list to plot with GC.activity(compare=TRUE).If compare mode is active you get a list of rides, otherwise a list of 1 ride, the one currently selected.
## R script will run on selection.
##
## GC.activity(compare=TRUE)
## GC.metrics(all=FALSE)
##
## Get the current ride or metrics
##
# get a list of activities, will have one member
# if not in compare mode, or multiple if we are
# in compare mode
d <- GC.activity(compare=TRUE)
## set plot limits
maxy <-0
maxx <- 0
for (compare in d) {
# get the activity being compared
ride <- compare$activity
# density
k <- density(ride$power)
# max on x axis
mx <- max(ride$power)
if (mx > maxx) maxx <- mx;
# max on y axis
my <- max(k$y)
if (my > maxy) maxy <- my;
}
## create a blank plot
plot(k, ylim = c(0,maxy), xlim=c(0,maxx), col="black",
main="", xlab="")
title(main="Power Distribution", xlab = "Watts")
## add density
for (compare in d) {
# just the ride
ride <- compare$activity
k <- density(ride$power)
lines(k, col=compare$color)
}
Thanks Mark , but in my GC 4.1604 appears this error :Error in GC.metrics(compare=TRUE) : unused argument (compare=TRUE)THANKS
Will it be possible to write back changes to activities? Perhaps like Macros in Excel?
Is that in the spirit of: Some lead others follow? :)
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Great start at documentation!
Some important things that are missing (and if I knew I'd just add/submit):- link to doc describing how to build GC with R integrated
- Is the R console referred to in the doc embedded in GC or is that using something like R Studio (or the standard R dist's console)?
- How does one create a chart rendered by R? Even just something like "it's under the such-and-such menu", or a screenshot of the setup
- Brief description of the architecture of this integration from a user's point of view, e.g., GC is the data source, R performs analysis and transformations, feeding the results back into a plot in GC. User accesses R from <where? need answer to questions above>.
I'm excited about this integration.
On Thu, May 5, 2016 at 4:07 AM, Mark Liversedge <liver...@gmail.com> wrote:
I've started to document this in the wiki with examples for those wanting to get started with it.I'm documenting alongside the development so some of the features won't be in the DEV1604 build.Mark
--
_______________________________________________
Golden-Cheetah-Users mailing list
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.
--Chris Cleeland
On Thursday, 5 May 2016 13:58:36 UTC+1, Chris Cleeland wrote:Great start at documentation!Thanks Chris. I figured examples are more enlightening than pure API descriptions.Some important things that are missing (and if I knew I'd just add/submit):- link to doc describing how to build GC with R integratedProbably leave that to developer lists etc like other stuff.
- Is the R console referred to in the doc embedded in GC or is that using something like R Studio (or the standard R dist's console)?I should add a bit explaining the R Chart itself; canvas, console, script.- How does one create a chart rendered by R? Even just something like "it's under the such-and-such menu", or a screenshot of the setupI definitely need to add something on enabling R chart in preferences (setting up RHOME)
I'm excited about this integration.Me too, it was a bit of a hack for fun originally and now its beginning to dawn on me that its quite a massive game changer. If you want an interesting chart then chances are R already has a package for it and you can knock it together in a few minutes.No more waiting for a new release for a new chart type.. just write it in R............
Is there an easy way to exchange scripts?
So...I tried to add an R chart. I can type in a title, but the gray box under the title doesn't appear to allow me to add any text.
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
I've fixed the dynamic loading code so this will be fixed in the next dev build.For now just install 3.2.4 of R, or wait a couple of weeks :)
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "golden-cheetah-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golden-cheetah-users/Wv-JPlvBcrc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golden-cheetah-u...@googlegroups.com.
Neat stuff. I do most of my work in R as a living, but generally use RStudio as my IDE. Given that I work a lot with machine learning and have access to high powered compute resources I am very curious as to performing some ML methods (clustering, nearest neighbor) on both rider and ride data in the future if that ever becomes a project of interest, but I think at this point in time that cart is miles beyond the proverbial horses.
I watched the video and wondered when/if you will leverage some of the more powerful D3 packages currently available? I typically use ggplot for static plots, but more and more end up building D3 mockups, exporting the code, and then hacking away in D3 or JS.
Anyways, for exploring power data I'd find those much more useful than the R base plots. Moreover, have you thought of using Packrat to build a GC plotting environment? I don't start up R without also loading Dplyr, data.table, ggplot, and many other packages that would be incredibly useful for the basic plotting shown in the video. Since R is almost always running in RStudio it's not an issue for me since the packages are already loaded, but should myself or someone else interface strictly through GC I guess it would be a tad bit tedious to load packages every time I would use this feature.
Also, filtering/munging in chains is typically in many ggplot calls, like this hypothetical scenario where I'd want a top chart that has a scatterplot of power by zone for a specific cadence and speed range, a bottom chart that has binned cadence ranges on the x axis and power on the y axis. One could use such a chart from a race to see what cadence they self select at a certain pace. With some of the dynamic options this could live on the same plot.
Perhaps I wasn't clear, but I don't want to have to manually use the library command in GC nor should a user necessarily have to. I would suggest using Packrat to at least load a basic environment for the user in case they do not have another instance of R open and do not want to store redundant library commands in their scripts. Or at least suggest using require() or library().
Having 1 page per chart is IMO not a very robust UI. It would be great to be able to add a scrolling page function or option to return the charts as a flexdashboard or grob/grid object. You lose the comparative power of plotting multiple metrics when you have to switch pages, kind of remember what the other one said, and repeat.
It depends which rCharts widgets you would like to use, but I find Plotly to be much easier for most things, but there are certain cases where writing rCharts syntax is really easy for people who are really used to chained commands and piping. I use NVD3 and Morris sometimes, but later found that highchart and htmlwidgets did the same thing, but with less manipulation and code. You can simply just wrap a ggplot in (gg<-ggplotly()) to render it as a dynamic chart, so that's been my preference lately. I've used all of the dynamic libraries extensively and their are really important nuances to data formatting for specific chart types. This again goes back to my comment regarding packrat as any script that feeds into one of these plotting packages will usually require long format data as opposed to wide format, which is difficult (but not impossible) to wrap into a function.
R is a bit of a mess in many regards and what typically happens is users end up taking chunks and pieces that they use often and create their own functions, packages, and environments. For example, there is not a single function in any R package to adjust financial data to inflation, so I had to create function that returns a lookup table and also can take a data frame with dates and values and return a new inflation-adjustment column. Something common, but it doesn't exist. It's not something that needs its own package, but made its way into a package of things myself and co-workers do a lot and can save time and memory by loading a single package and its dependencies into the environment plus some of the underling C and SQL is optimized for the way we read in our data from various servers.
I digress, but I'm definitely willing to help provide some plotting guidance. The standard these days for dynamic plotting is simply to use R for prototyping and then exporting the JS or JSON and doing the rest of the work in JS and D3 outside of R. Same as using Illustrator for polishing up static plots.
If you're interested in collaboration on the ML side, contact me off list as I perform similar work daily in my formal/professional life.
Perhaps someone can help here. In GC I do not get my R charts to show the y-axis label ("ylab"). Furthermore, bottom of tick mark labels is facing outwards. If I plot the the same data directly within R I get the standard behaviour? I use R x64 3.2.5
Another question: is it already possible to access the intervals of an activity via R? I can't find anything.
....
One of the most important points here is R is embedded as an engine for GC, GC is not becoming Rstudio.
CHEERSMark