Package: paintr 0.0.1

James Joseph Balamuta

paintr: Create Graphics of 'R' Data Structures

Draws teaching diagrams of the contents of common 'R' data structures (vectors, matrices, data frames, lists, and arrays) so their shape and values can be read at a glance. Two backends render the same picture, with base 'R' graphics through the paint_*() functions and 'ggplot2' through the gpaint_*() functions. The label under each cell is the expression you would type to reach that cell, so every diagram doubles as a lesson in how to subset and index the object it draws.

Authors:James Joseph Balamuta [aut, cre, cph]

paintr_0.0.1.tar.gz
paintr_0.0.1.zip(r-4.7-any)paintr_0.0.1.zip(r-4.6-any)paintr_0.0.1.zip(r-4.5-any)
paintr_0.0.1.tgz(r-4.6-any)paintr_0.0.1.tgz(r-4.5-any)
paintr_0.0.1.tar.gz(r-4.7-any)paintr_0.0.1.tar.gz(r-4.6-any)
paintr_0.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
paintr/json (API)

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

Bug tracker:https://github.com/coatless-rpkg/paintr/issues

Pkgdown/docs site:https://r-pkg.thecoatlessprofessor.com

On CRAN:

Conda:

data-structuresdrawpaintquarto

5.79 score 17 stars 12 scripts 233 downloads 17 exports 0 dependencies

Last updated from:ec607f9402. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK172
source / vignettesOK207
linux-releaseOK146
macos-releaseOK138
macos-oldrelOK187
windows-develOK193
windows-releaseOK202
windows-oldrelOK214
wasm-releaseOK85

Exports:gpaint_arraygpaint_data_framegpaint_dfgpaint_listgpaint_matrixgpaint_vectorhighlight_columnshighlight_datahighlight_locationshighlight_rowspaint_arraypaint_data_framepaint_dfpaint_listpaint_matrixpaint_sizepaint_vector

Dependencies:

Base graphics and ggplot2
The same picture, twice | So which do you reach for? | The ggplot is a shell | The short version

Last update: 2026-07-18
Started: 2026-07-16

Getting started with paintr
What paintr draws | Two backends: paint_ and gpaint_ | Vectors | Matrices | Data frames | Lists | Arrays | Picking a legible device size | Where next

Last update: 2026-07-18
Started: 2026-07-16

Highlighting cells
A highlight is a logical mask | The three builders | A comparison is already a mask | A different colour | Highlighting works on every structure | Base and ggplot2, the same mask

Last update: 2026-07-18
Started: 2026-07-16

Readme and manuals

Help Manual

Help pageTopics
Highlight datahighlight_columns highlight_data highlight_data.array highlight_data.character highlight_data.complex highlight_data.data.frame highlight_data.Date highlight_data.default highlight_data.factor highlight_data.integer highlight_data.list highlight_data.logical highlight_data.matrix highlight_data.numeric highlight_data.POSIXct highlight_data.table highlight_data.vector highlight_locations highlight_rows
Visualize Data Inside of an Arraygpaint_array paint_array
Visualize Data Inside of a Data Framegpaint_data_frame gpaint_df paint_data_frame paint_df
Visualize Data Inside of a Listgpaint_list paint_list
Visualize Data Inside of a Matrixgpaint_matrix paint_matrix
The device size a data structure needspaint_size
Visualize Data Inside of a Vectorgpaint_vector paint_vector