cxplot is a JavaScript wrapper for CanvasXpress, implementing the grammar of graphs found in the popular R ggplot2 package. It's worth noting that this library is entirely written in JavaScript and doesn't rely on R at all. While the accompanying documentation pages may not be frequently updated, the library itself is actively maintained and developed. The documentation provides only a limited number of usage examples. For reporting bugs or requesting features, please use the GitHub repository: https://github.com/neuhausi/cxplot
JavaScript LibraryInclude the CanvasXpress JavaScript library in the
Any code as decribed below should be placed in a 


Plot basicsAll cxplot plots begin with a call to


Create a new cxplot 

Construct aesthetic mappings 

Layers 

GeomsA layer combines data, aesthetic mapping, a geom (geometric object), a stat
(statistical
transformation), and a position adjustment. Typically, you will create layers using
a


Reference lines: horizontal, vertical, and diagonal 

Bar charts 

Heatmap of 2d bin counts 

A box and whiskers plot (in the style of Tukey) 


2D contours of a 3D surface 

Smoothed density estimates 


Contours of a 2D density estimate 

Dot plot 

Horizontal error bars 

Hexagonal heatmap of 2d bin counts 

Histograms and frequency polygons 

Jittered points 

Connect observations 

Points 

A quantilequantile plot 

Quantile regression 

Ribbons and area plots 

Rug plots in the margins 

Smoothed conditional means 

Text 

Rectangles 

Violin plot 

ScalesScales control the details of how data values are translated to visual properties.
Override the
default scales to tweak details like the axis labels or legend keys, or to use a
completely different
translation from data to aesthetic.


Modify axis, legend, and plot labels 

Set scale limits 

FacettingFacetting generates small multiples, each displaying a different subset of the data. Facets are an alternative to aesthetics for displaying additional discrete variables. 

Wrap a 1d ribbon of panels into 2d 

ThemesThemes control the display of all nondata elements of the plot. 
