grantmcdermott / tinyplot

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

type = "h" (and possibly others) don't work #26

Closed grantmcdermott closed 1 year ago

grantmcdermott commented 1 year ago

Also fixed for types "c", "s" and "S".:

Example behaviour after https://github.com/grantmcdermott/plot2/commit/40a1aeec4040391d799f647e24da241ceeb75ebf

library(plot2)

plot2(0:10, type = "h")


plot2(mpg ~ wt | cyl, mtcars, type = "h")


plot2(Temp ~ Day | Month, airquality, type = "s")

grantmcdermott commented 1 year ago

One thing we might need to think about, however, is controlled jittering for grouped "h" plots. (You could say the same thing for other plot types with overlap.)


plot2(Temp ~ Day | Month, airquality, type = "h")