Liking cljdoc? Tell your friends :D

pinkgorilla.ui.gg4clj


data-frameclj

(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.
sourceraw docstring

r+clj

(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/+.
sourceraw docstring

renderclj

(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.
sourceraw docstring

to-rclj

(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.
sourceraw docstring

viewclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close