Package: gglite 0.0.33

gglite: Lightweight Data Visualization via the Grammar of Graphics

A lightweight R interface to the AntV G2 JavaScript visualization library with a ggplot2-style API. Supports rendering in litedown, R Markdown, Quarto, Jupyter notebooks (via the R kernel), Shiny, and standalone HTML previews.

Authors:Yihui Xie [aut, cre]

gglite_0.0.33.tar.gz
gglite_0.0.33.zip(r-4.7)gglite_0.0.33.zip(r-4.6)gglite_0.0.33.zip(r-4.5)
gglite_0.0.33.tgz(r-4.6-any)gglite_0.0.33.tgz(r-4.5-any)
gglite_0.0.33.tar.gz(r-4.7-any)gglite_0.0.33.tar.gz(r-4.6-any)
gglite_0.0.33.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
gglite/json (API)

# Install 'gglite' in R:
install.packages('gglite', repos = c('https://yihui.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yihui/gglite/issues

On CRAN:

Conda:

6.26 score 41 stars 44 scripts 80 exports 1 dependencies

Last updated from:43dbbbf2bf. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK118
source / vignettesOK191
linux-release-x86_64OK116
macos-release-arm64OK101
macos-oldrel-arm64OK107
windows-develOK66
windows-releaseOK76
windows-oldrelOK77
wasm-releaseOK100

Exports:animateaxis_xaxis_ycanvaschart_htmlcoord_coord_helixcoord_parallelcoord_polarcoord_radarcoord_radialcoord_thetacoord_transposeencodefacet_circlefacet_rectg2g2Outputinteractjslegend_colorlegend_opacitylegend_shapelegend_sizemark_areamark_beeswarmmark_boxmark_boxplotmark_cellmark_chordmark_connectormark_densitymark_edgemark_force_graphmark_gaugemark_heatmapmark_imagemark_intervalmark_linemark_line_xmark_line_ymark_linkmark_liquidmark_nodemark_packmark_partitionmark_pathmark_pointmark_polygonmark_rangemark_range_xmark_range_ymark_rectmark_sankeymark_shapemark_sunburstmark_textmark_treemark_treemapmark_vectormark_word_cloudrenderG2scale_colorscale_opacityscale_shapescale_sizescale_xscale_yscroll_xscroll_yslider_xslider_ystyle_marktheme_academytheme_classictheme_classic_darktheme_darktheme_lighttitlestooltip

Dependencies:xfun

Introduction to gglite
Data and encodings | Formula interface | Character string interface | Marks (geometries) | Points (scatter plot) | Lines | Bars (intervals) | Areas | Box plots | Combining marks | Automatic marks | Scatter plot (numeric × numeric) | Bar plot (categorical × numeric, unique categories) | Beeswarm plot (categorical × numeric, repeated categories) | Beeswarm + density (categorical × numeric, large groups) | Horizontal beeswarm (numeric × categorical) | Contingency table (categorical × categorical) | Line chart (Date × numeric) | Histogram (numeric only) | Count bar chart (categorical only) | Parallel coordinates (multiple position fields) | Time series | Scales | Coordinates | Polar coordinates (rose chart) | Theta coordinates (pie chart) | Transposing axes | Transforms | Stacked bars | Dodged bars | Stacked area chart | Facets | Themes | Components | Titles | Tooltips | Labels | Interactions | Putting it all together | Using + instead of |>

Last update: 2026-04-16
Started: 2026-03-31

gglite for ggplot2 Users
Key differences at a glance | No non-standard evaluation | Building blocks: geom → mark | Scatter plot | Bar chart | Line chart with groups | Stacked and dodged bars | Scales | Coordinates | Faceting | Themes | Titles and labels | What gglite adds | Built-in interactivity | Animations | Lightweight output | Using + instead of |> | Quick-reference cheat sheet

Last update: 2026-04-14
Started: 2026-03-31

Readme and manuals

Help Manual

Help pageTopics
Add a Modifier to a G2 Chart+.g2
Set Animation Optionsanimate
Configure an Axisaxis_ axis_x axis_y
Configure Canvas Optionscanvas
Generate Chart HTMLchart_html
Set the Coordinate Systemcoord_ coord_helix coord_parallel coord_polar coord_radar coord_radial coord_theta
Transpose (Flip) the Coordinate Systemcoord_transpose
Set Aesthetic Mappingsencode
Facet in a Circular Layoutfacet_circle
Facet by a Rectangular Gridfacet_rect
Create a G2 Chart Objectg2
Shiny Output for a G2 Chartg2Output
Add an Interactioninteract
Custom Printing in Knitrknit_print.g2
Add Labels to the Last Marklabels.character labels.formula labels.g2
Configure a Legendlegend_ legend_color legend_opacity legend_shape legend_size
Add a Geometry Layer (Mark)mark_ mark_area mark_beeswarm mark_box mark_boxplot mark_cell mark_chord mark_connector mark_density mark_edge mark_force_graph mark_gauge mark_heatmap mark_image mark_interval mark_line mark_line_x mark_line_y mark_link mark_liquid mark_node mark_pack mark_partition mark_path mark_point mark_polygon mark_range mark_range_x mark_range_y mark_rect mark_sankey mark_shape mark_sunburst mark_text mark_tree mark_treemap mark_vector mark_word_cloud
Preview a Chart in the Viewer or Browserprint.g2
Render a G2 Chart in ShinyrenderG2
Configure a Scalescale_ scale_color scale_opacity scale_shape scale_size scale_x scale_y
Add a Scrollbarscroll_ scroll_x scroll_y
Add a Sliderslider_ slider_x slider_y
Set Style on the Last Markstyle_mark
Set the Chart Themetheme_ theme_academy theme_classic theme_classic_dark theme_dark theme_light
Set the Chart Titletitles
Configure the Tooltiptooltip
Add a Data Transform to the Last Marktransform.character transform.g2