This functions shifts the axes from the default position to a prespecified
position on the x- or y-axis. This can be particularly useful for plots that
have the null coordinate at x = 0
and y = 0
.
This function does not apply itself to the ggplot object directly, so it can't
be added as a layer, but rather takes the ggplot object as input.
Minimal usage as follows:
shift_axes(ggobj, x = 0, y = 0)
1 | shift_axes(plot.obj = NULL, x = 0, y = 0, axis.col = "#cccccc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.