Skip to content

tinyplot with numeric col index does not work #326

@zeileis

Description

@zeileis

Prompted by #324 I noticed that passing numeric color indexes to tinyplot(..., col = ...) does not work, e.g.,

tinyplot(bill_depth_mm ~ bill_length_mm, data = penguins, col = 4)
tinyplot(bill_depth_mm ~ bill_length_mm | sex, data = penguins, col = 3:4)

whereas using character colors does work as expected:

tinyplot(bill_depth_mm ~ bill_length_mm, data = penguins, col = "blue")
tinyplot(bill_depth_mm ~ bill_length_mm | sex, data = penguins, col = c("green", "blue"))

tinyplot scatter plot with different color specifications

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions