axis_x: axis_x

Description Usage Arguments Examples

View source: R/axomatic.r

Description

Simplified function for defining the x axis with settings for tickmarks and labels. This function is a slight simplification of the aximaticultimatic() function: It only works for the x axis. The function is used as a ggplot object.

Usage

1
axis_x(from, to, ticks = 1, labels = 1, pad = 0, upperPad = NA, lowerPad = NA)

Arguments

from

Start of the axis.

to

End of the axis.

ticks

How much space between each tickmark.

labels

The numbers or text beneath the tickmarks. 0 = no labels, 1 = label on every tickmark, 5 = label every 5'th tickmark, and so on. Setting this paramter as a vector lets you make self-defined labels, e.g. you can write c("one","two","three","four") or whatever.

pad

How much space before and after the first and last mark on the axis.

upperPad

specification of pad, but only for space after the last mark.

lowerPad

specifiction of pad, but only for spcae before the first mark.

Examples

1
axis_x(from=0, to=20, ticks=1, labels=5, pad=2) #makes an axis going from 0 to 20, with 20 tickmarks, and labels every 5th tickmark, and a space of 2 before and after te marks

Eiriksen/EirikFunctions documentation built on Oct. 30, 2019, 5:31 p.m.