| hd_geom_scatter | R Documentation |
hd_geom_scatter() creates a scatter geometry layer that is added to an
hd() object via +. Use geom_args() to discover available arguments per
geometry, e.g. geom_args("scatter") lists dot_size.
hd_geom_scatter(dot_size = 4, ...)
dot_size |
Numeric. Size of the points in the scatter plot. Default is 4. |
... |
Geometry-specific arguments forwarded to |
An S3 object of class "hd_geom" for use with +.hd.
# Basic scatter plot - layered API
hd(mtcars, x = "wt", y = "mpg", backend = "static") +
hd_geom_scatter() +
hd_opts(title = "Scatter Plot of mtcars")
# Basic scatter plot - declarative API
car <- hd_spec(mtcars, x = "wt", y = "mpg")
opt <- hd_opts(title = "Scatter Plot of mtcars")
hd_make(car, type = "scatter")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.