Customise general style of the chart.
motif(g2, coord_type = NULL, coord_rotate = NULL, coord_sx = NULL,
coord_sy = NULL, coord_reflect = NULL, coord_transpose = NULL,
width = NULL, height = NULL, padding = rep(10, 4),
bg_fill = NULL, bg_opacity = NULL, bg_fill_opacity = NULL,
bg_stroke = NULL, bg_stroke_opacity = NULL, bg_line_width = NULL,
bg_radius = NULL, plot_fill = NULL, plot_fill_opacity = NULL,
plot_stroke = NULL, plot_stroke_opacity = NULL,
plot_opacity = NULL, plot_line_width = NULL, plot_radius = NULL,
fit = TRUE, animate = TRUE, pixel_ratio = NULL, renderer = NULL,
font = NULL)
An object of class g2r
as returned by g2r
.
Customise global coordinates of chart.
Chart dimensions.
Padding around chart, a vector of length 4
corresponding to top, right, bottom, and left.
Customise background of global chart.
Customise plot background.
Whether to force graph to fit parent element.
Whether to animate the chart.
Device pixel ratio, defaults to window.devicePixelRatio
.
Renderer, canvas
or svg
.
Font to use on chart.
# NOT RUN {
g2(cars, asp(speed, dist)) %>%
fig_point() %>%
motif(plot_fill = "grey")
# }
Run the code above in your browser using DataLab