(data-frame data-map)
A helper function that takes frame-like data in the 'natural' Clojure format of {:key [vector of values] :key2 [vector ...] ...} and returns the Clojure representation of R code to make a data.frame.
A helper function that takes frame-like data in the 'natural' Clojure format of {:key [vector of values] :key2 [vector ...] ...} and returns the Clojure representation of R code to make a data.frame.
(fix-viewbox svg)
resolve function-as symbol to function references in the reagent-hickup-map. Leaves regular hiccup data unchanged.
resolve function-as symbol to function references in the reagent-hickup-map. Leaves regular hiccup data unchanged.
(r+ & args)
A helper function for adding things together (i.e. ggplot2 layers). Call it with the arguments you want to add together, in the same manner as core/+.
A helper function for adding things together (i.e. ggplot2 layers). Call it with the arguments you want to add together, in the same manner as core/+.
(render plot-command)
(render plot-command options)
Takes a ggplot2 command, expressed in the Clojure representation of R code, and returns the plot rendered to SVG as a string. Options can be passed in a second argument, if wished, as a map. Supported options are :width of plot (in inches!) and :height. If only :width is given then a sensible default height will be chosen.
Takes a ggplot2 command, expressed in the Clojure representation of R code, and returns the plot rendered to SVG as a string. Options can be passed in a second argument, if wished, as a map. Supported options are :width of plot (in inches!) and :height. If only :width is given then a sensible default height will be chosen.
(to-r code)
Takes a Clojure representation of R code, and returns the corresponding R code as a string.
Takes a Clojure representation of R code, and returns the corresponding R code as a string.
(view plot-command)
(view plot-command options)
View a ggplot2 command, expressed in the Clojure representation of R code, in Gorilla REPL. Options can be passed in a second argument, if wished, as a map. Supported options are :width of plot (in inches!) and :height. If only :width is given then a sensible default height will be chosen.
View a ggplot2 command, expressed in the Clojure representation of R code, in Gorilla REPL. Options can be passed in a second argument, if wished, as a map. Supported options are :width of plot (in inches!) and :height. If only :width is given then a sensible default height will be chosen.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close