grantmcdermott / tinyplot

Lightweight extension of the base R graphics system
https://grantmcdermott.com/tinyplot
Apache License 2.0
211 stars 7 forks source link

Global palette should be respected #44

Closed grantmcdermott closed 1 year ago

grantmcdermott commented 1 year ago
library(plot2)

par(pch = 16)

# Default "R4" palette
plot2(Sepal.Length ~ Petal.Length | Species, iris)

# Specifying different palette as part of plot call works...
plot2(Sepal.Length ~ Petal.Length | Species, iris, palette = "Tableau 10")

... But setting global palette doesn't
palette("Tableau 10")
plot2(Sepal.Length ~ Petal.Length | Species, iris)

Created on 2023-07-25 with reprex v2.0.2