Stat.xticks

Compute an appealing set of ticks that encompass the data.

Arguments

Aesthetics

All x-axis aesthetics are considered, and ticks are output to the xtick and xgrid aesthetics.

Examples

# Providing a fixed set of ticks
plot(x=rand(10), y=rand(10),
     Stat.xticks(ticks=[0.0, 0.1, 0.9, 1.0]), Geom.point)
x 0.0 0.1 0.9 1.0 0.0 0.5 1.0 y