Skip to contents

Returns all shapes, or the shapes in one group:

Usage

bones_shapes(group = NULL)

Arguments

group

A group: "basic", "chart" or "table". NULL (the default) returns all shapes.

Value

A character vector in the same order as the full list of shapes.

Details

  • Basic: "text", "cards", "value".

  • Chart: "plot", "bar", "line", "scatter", "area", "histogram", "pie", "heatmap", "map", "network", "timeline", "wordcloud".

  • Table: "table", "dt", "reactable", "gt", "rhandsontable".

The chart group includes "plot", which uses the bar shape. The table group includes "table" and the table package shapes.

Examples

bones_shapes()
#>  [1] "text"          "table"         "plot"          "cards"        
#>  [5] "value"         "bar"           "line"          "scatter"      
#>  [9] "area"          "histogram"     "pie"           "heatmap"      
#> [13] "map"           "network"       "timeline"      "wordcloud"    
#> [17] "dt"            "reactable"     "gt"            "rhandsontable"
bones_shapes("chart")
#>  [1] "plot"      "bar"       "line"      "scatter"   "area"      "histogram"
#>  [7] "pie"       "heatmap"   "map"       "network"   "timeline"  "wordcloud"