Description Usage Arguments Examples
Customise general style of the chart.
1 2 3 4 5 6 7 8 9 10 | 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)
|
g2 |
An object of class |
coord_type, coord_rotate, coord_sx, coord_sy, coord_reflect, coord_transpose |
Customise global coordinates of chart. |
width, height |
Chart dimensions. |
padding |
Padding around chart, a vector of length |
bg_fill, bg_opacity, bg_fill_opacity, bg_stroke, bg_stroke_opacity, bg_line_width, bg_radius |
Customise background of global chart. |
plot_fill, plot_fill_opacity, plot_stroke, plot_stroke_opacity, plot_opacity, plot_line_width, plot_radius |
Customise plot background. |
fit |
Whether to force graph to fit parent element. |
animate |
Whether to animate the chart. |
pixel_ratio |
Device pixel ratio, defaults to |
renderer |
Renderer, |
font |
Font to use on chart. |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.