Description Usage Arguments Details Value Examples
This is the starting function for creating a charts
object in R
.
It operates similarly to plotly::plot_ly
.
1 2 3 4 5 6 7 8 9 10 |
data |
The data that the plot is based on (a |
x |
An expression that evaluates to a vector that will be used as the x-axis values
(see |
type |
The type of trace (character scalar, one of |
options |
A list containing the options to start with. |
elementId |
An ID string for the widget (will be randomly assigned) (character scalar). |
width/height |
The width/height of the |
See here for Chart.js
examples: https://www.chartjs.org/.
And see here for the official Chart.js
library documentation:
https://www.chartjs.org/docs/latest/
.
A chartjs
htmlwidget
object.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.