Skip to content

added tinyplot.data.frame method#613

Open
zeileis wants to merge 1 commit into
mainfrom
data-frame-method
Open

added tinyplot.data.frame method#613
zeileis wants to merge 1 commit into
mainfrom
data-frame-method

Conversation

@zeileis
Copy link
Copy Markdown
Collaborator

@zeileis zeileis commented Jun 7, 2026

Replaces #347

The new data.frame method for tinyplot() draws some inspiration from the corresponding method for base plot(). It mainly facilitates using tinyplot() with data frames and pipes.

tinytheme("clean2")
cars |> tinyplot()
tinyplot-dataframe1
iris |> tinyplot(Sepal.Length ~ Petal.Width | Species)
tinyplot-dataframe2

Currently, this only works for data frames with 1 or 2 variables. In the future we might add a pairs-style display as follows but this would require better handling of axes and their labels.

par(mfrow = c(5, 5))
for (i in names(iris)) for(j in names(iris)) tinyplot(iris[, unique(c(j, i)), drop = FALSE])
tinyplot-dataframe3

So far the PR only contains code and documentation. NEWS and tests can be added when we agree on the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant