ZeroAxes: Draw axes centred at zero

Description Usage Arguments Details Value

Description

Draw axes centred at zero

Usage

1
2
3
4
ZeroAxes(xrange, yrange, xlabel, ylabel, xticks = 5, yticks = 5,
  basesize = 5)

ApplyZeroAxes(p, xticks = 5, yticks = 5, basesize = 5)

Arguments

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.

Details

ZerosAxes() draw axes by annotating on (0, ) and (, 0). Since annotate() is used, theme settings are not inherited, thus basesize must be set independently.

Value

a list of ggplot objects.


Crystal-YWu/abftools documentation built on May 10, 2019, 8:22 a.m.