Description Usage Arguments Details Value
Draw axes centred at zero
1 2 3 4 | ZeroAxes(xrange, yrange, xlabel, ylabel, xticks = 5, yticks = 5,
basesize = 5)
ApplyZeroAxes(p, xticks = 5, yticks = 5, basesize = 5)
|
xrange |
Range of x axis. |
yrange |
Range of y axis. |
xlabel |
Label of x axis. |
ylabel |
Label of y axis. |
xticks |
Number of ticks on x axis. |
yticks |
Number of ticks on y axis. |
basesize |
Base textsize. |
p |
A ggplot object. |
ZerosAxes() draw axes by annotating on (0, ) and (, 0). Since annotate() is used, theme settings are not inherited, thus basesize must be set independently.
a list of ggplot objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.