Description Usage Arguments Functions Examples
Configure the axes.
Customise the legend.
1 2 3 4 5 6 7 8 9 10 11 12 13 | axis_x(g, ...)
axis_y(g, ...)
axis_asps(g, asps, ...)
axis_hide(g)
legend_color(g, ...)
legend_size(g, ...)
legend_asps(g, asps, ...)
|
g |
An object of class |
... |
Options to pass to the legend, pass |
asps |
Aspect (column names) to change the legend. |
axis_x
: Customise the x axis.
axis_y
: Customise the y axis.
axis_asps
: Customise the axis by aspects (column names).
axis_hide
: Hide all axis.
legend_color
: Customise the x axis.
legend_size
: Customise the y axis.
legend_asps
: Customise the axis by aspects (column names).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | g <- g2(cars, asp(speed, dist)) %>%
fig_point()
# hide axis
g %>% axis_x(FALSE)
# same as above
g %>% axis_asps("speed", FALSE)
# change position
g %>% axis_x(position = "top")
g <- g2(mtcars, asp(mpg, qsec, color = gear)) %>%
fig_point()
g %>% legend_color(position = "top")
g %>% legend_color(FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.