Random experiment: can Claude Opus 5.5 train a small LLM on R's tidyverse documentation (ggplot2 + dplyr)? The answer is yes. GGLLM is a 13.8M-parameter model (27.6 MB) trained on R code and the ggplot2 and dplyr docs. Pick a dataset or type a one-line data dictionary, then ask for a chart in plain English: a top 10, a trend, a full EDA, or "make it polished". It writes the code, and real R (webR) draws the plot. It does not handle typos well yet, but it does a decent job with no server: the model and R both run in your browser. Weights and code: github.com/vibedatascience/ggllm
How it was trained
1. Mine real code and documentation
771 + 310
2. Write training data
68,700
rows of tidyverse code (count, fct_lump, fct_reorder, pivot_longer) and polish styles, many phrasings each
3. Check targets in R
1,499 / 1,500
sampled answers built with ggplot_build(); the one failure removed
4. Hide the names
@N1@ @C1@
column names swapped for placeholders, so it works on any data frame
5. Train from scratch, then fine-tune
13.8M
params, 8 layers; 1,800 + 1,100 + 600 steps on a 2-core CPU
6. Test on unseen notebooks
38%
of 29 requests from 10 notebooks it never saw run and match the original chart (was 24%)
Data: real TidyTuesday datasets (or fake data for any schema you type)
Preview
Data frame (schema)
Prompt
What the model sees (names swapped for placeholders)
Generated ggplot2 code (editable)
Output tokens: ggplot2 piece / byte / placeholder
Plot
Starting R in your browser (first load about 10 to 20 s)
Examples on real TidyTuesday data, code written by this model (multi-plot answers show 4 of their plots). Click to rerun.