Description Usage Arguments Value Examples
bubbles.
Creates a bubble chart.
1 2 |
value |
Numeric vector of values, used for sizing bubbles. The value
will be proportional to the radius, not the area; for area, call
|
label |
Character vector of textual labels to use on bubbles |
key |
Values that will uniquely identify a bubble across runs. This
doesn't matter for static bubble charts, but if a bubble chart receives
updates (i.e. in a Shiny app) then d3.js will use the key to know which
bubbles in the "before" state correspond with which bubbles in the
"after" state, and perform smooth transitions. If |
tooltip |
Character vector of tooltip values, to be shown on hover |
color |
Character vector of bubble color values, in |
textColor |
Character vector of text color values, in |
width |
The width of the widget, or |
height |
The height of the widget, or |
A widget object that can be printed at the console, outputted as part
of an R Markdown document, or used in a Shiny app with
renderBubbles
.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.