Hahaha; Well, you beat me to it... But awesome! I'd still love to work on a native clojure implementation, but also acknowledge that it might be a while before I'm able to given a shift in focus of late. In the mean time, this will be super useful when base gorilla-repl plotting functionality isn't enough.
I haven't used ggvis, but I've heard good things about it from others. Would certainly be cool to see something in that direction. Cheers! Chris On Saturday, December 27, 2014 1:53:22 AM UTC-7, Daniel Slutsky wrote: > > Wonderful, gg4clj is really nice! > > > Regarding ggvis, it might be worth knowing that it can generate not only > interactive htmls, but also a static JSONs in Vega format (which is of > course fun to edit from Clojure). > > For example: > capture.output(data.frame(x=c(1,2)) %>% ggvis(x=~x) %>% show_spec); > > Therefore, from Gorilla point of view, ggvis may be considered a powerful > DSL for generating Vega plots (which can then be edited for Gorilla needs). > > > > On Friday, December 26, 2014 11:28:30 PM UTC+2, Jony Hudson wrote: >> >> Thanks :-) >> >> And thanks for the pointer to ggvis. I've been shying away from >> interactive plots in Gorilla, since I haven't really seen or thought of a >> way to do it that seems satisfactory - and I'm not sure ggvis is there yet. >> But definitely will keep an eye on it though ... >> >> >> Jony >> >> On Friday, 26 December 2014 19:43:59 UTC, [email protected] wrote: >>> >>> Looks beautifull :) Good work >>> >>> I don't know if you're also aware of ggvis. The ggplot2 reincarnation >>> from the same developer. It has some extra niceties like interactivity. It >>> also renders it output in vega. So it should ouput render also nicely in >>> gorrila (I guess) >>> http://ggvis.rstudio.com/ >>> >>> Greetz >>> >>> Op vrijdag 26 december 2014 16:36:42 UTC+1 schreef Jony Hudson: >>>> >>>> Hi all, >>>> >>>> from the README: >>>> >>>> gg4clj is a lightweight wrapper to make it easy to use R's ggplot2 >>>>> library from Clojure. It provides a straightforward way to express R code >>>>> in Clojure, including easy mapping between Clojure data and R's >>>>> data.frame, >>>>> and some plumbing to send this code to R and recover the rendered >>>>> graphics. >>>>> It also provides a Gorilla REPL renderer plugin to allow rendered plots >>>>> to >>>>> be displayed inline in Gorilla worksheets. It is not a Clojure rewrite of >>>>> ggplot2 - it calls R, which must be installed on your system (see below), >>>>> to render the plots. You'll need to be familiar with R and ggplot2, or >>>>> else >>>>> the commands will seem fairly cryptic. >>>> >>>> >>>> Demo worksheet, showing it in action here: >>>> http://viewer.gorilla-repl.org/view.html?source=github&user=JonyEpsilon&repo=gg4clj&path=ws/demo.clj >>>> Source here: https://github.com/JonyEpsilon/gg4clj >>>> >>>> Works better than I thought it would! >>>> >>>> >>>> Jony >>>> >>> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
