grantmcdermott / tinyplot

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

`"segments"` #162

Closed grantmcdermott closed 3 weeks ago

grantmcdermott commented 3 weeks ago

Originally requested by @harrelfe in https://github.com/grantmcdermott/tinyplot/issues/97#issuecomment-1966449879.

Where do segments fall? I’ve seen a lot of applications where passing a list with x1, x2, y1, y2 coordinates is very helpful.

grantmcdermott commented 3 weeks ago

@harrelfe This should now be supported in the dev version of tinyplot per #163. See the examples there for some use cases. One thing I'll highlight is that we use x(y)min and x(y)max (rather than x(y)0 and x(y)1) for consistency.