Description Usage Arguments Value See Also Examples
barGraph
produces a simple bar graph
1 2 3 |
x |
character, factor, numeric, logical or Date vector |
y |
numeric vector |
mainTitle |
character string; graph title |
xLabel |
character string; x-axis label |
yLabel |
character string; y-axis label |
yType |
character string; y-axis format type; valid
values are |
yDigits |
non-negative integer value indicating the number of decimal places to show when hovering over the bars |
barColor |
character string; fill color for bars (valid color) |
lineColor |
character string; line color (valid color) |
lineWidth |
non-negative integer value indicating line width (use 0 to omit) |
orderBy |
a value of |
orderDesc |
logical value; when ordering by |
horizontal |
logical value; create a horizontal bar graph? |
A plot_ly
bar graph using x
for the bar labels
and y
for the heights of the bars
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.