Description Usage Arguments Value Examples
This function adds a point/scatterplot "geom" to a metricsgraphics.js html widget.
1 2 3 4 |
mjs |
metricsgraphics plot object |
point_size |
the radius of the dots in the scatterplot |
least_squares |
add a least squares line? (default: |
size_accessor |
bare or quoted name of a column to use to scale the size of the points |
color_accessor |
bare or quoted name of a column to use to scale the color of the points |
color_type |
specifies whether the color scale is quantitative or qualitative.
By setting this option to " |
color_range |
the range of colors, used to color different groups of points. |
size_range |
specifies the range of point sizes, when point sizes are mapped to data |
x_rug |
show a "rug" plot next to the x axis? (default: |
y_rug |
show a "rug" plot next to the y axis? (default: |
metricsgraphics object
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.