bar | R Documentation |
Create a proportion chart
bar(data, colors, width = NULL, height = NULL, elementId = NULL)
data |
a |
colors |
Named |
width, height |
Width and height for the chart. |
elementId |
Explicit ID for the widget. |
bar::bar( data = list( list(name = "A", value = 123), list(name = "B", value = 456) ), colors = list(A = "firebrick", B = "steelblue") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.