Skip to contents

Painters

Draw an R data structure as a picture, one function per structure. Each page documents both backends: a base-graphics painter (paint_*(), drawn to the current device) and a ggplot2 painter (gpaint_*(), returning a ggplot object). Under every cell the painter writes the expression you would type to reach that value.

paint_vector() gpaint_vector()
Visualize Data Inside of a Vector
paint_matrix() gpaint_matrix()
Visualize Data Inside of a Matrix
paint_data_frame() gpaint_data_frame() paint_df() gpaint_df()
Visualize Data Inside of a Data Frame
paint_list() gpaint_list()
Visualize Data Inside of a List
paint_array() gpaint_array()
Visualize Data Inside of an Array

Highlighting

Mark specific cells for a painter to fill.

Sizing

Estimate the device size a structure needs so its text stays above the legibility floor.

paint_size()
The device size a data structure needs