tinyplot icon indicating copy to clipboard operation
tinyplot copied to clipboard

Supported plot types

Open grantmcdermott opened this issue 1 year ago • 4 comments

This issue is meant to list all of tinyplot's supported plot types, as well as track other candidate plot types that aren't supported yet. Please feel free to suggest more below, or call out anything that's missing.

(Repo admins are encouraged to edit this comment and add them directly.)

Direct plot equivalents

  • [x] "p" (points)
  • [x] "l" (lines)
  • [x] "b" (points + lines)
  • [x] "c" (empty points)
  • [x] "o" (overplotted points)
  • [x] "s"/"S" (stair steps)
  • [x] "h" (histogram-like vertical lines)
  • [x] #156

Other base plot types

  • [x] "density"
  • [x] "ridgeline" #71
  • [x] "histogram" #72
  • [x] "barplot" #305
  • [x] #153
  • [x] "spineplot" #2
  • [x] #126
  • [x] #158
  • [x] #160
  • [x] #162
  • [x] ~"curve"~ rather use type_function() below
  • [x] #279
  • [x] #169
  • [x] #275
  • [ ] "coplot"
  • [ ] #218

Range and interval types

  • [x] "ribbon"
  • [x] "area"
  • [x] "errorbar"
  • [x] "pointrange"
  • [x] #382

Stats models

  • [x] #227
  • [x] #228
  • [x] #229
  • [x] #240
  • [x] #239

Misc types

  • [x] #432
  • [ ] sf/"map" #210
  • [ ] "polar" #211
  • [x] "violin" #348

~~Composite types~~

Removing in favour of tinyplot_add() workflow.

Custom functions

  • [x] #226
  • [x] #248
  • [x] #273

grantmcdermott avatar Jan 22 '24 01:01 grantmcdermott

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

harrelfe avatar Feb 27 '24 12:02 harrelfe

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

Added to the list, thanks.

(We already use segments internally for interval plots, but we can certainly support user-provided coordinates.)

grantmcdermott avatar Feb 27 '24 19:02 grantmcdermott

Would you consider supporting plotting sf objects? Base plotting is much faster than e.g. ggplot2 or dedicated spatial plotting libraries such as tmap. Tinyplot could fill a nice niche here!

ratnanil avatar Mar 21 '25 05:03 ratnanil

Thanks for the suggestion: sf is not supported yet but it is on the wishlist, see #210

zeileis avatar Mar 21 '25 06:03 zeileis