axis: Add a styled axis to a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

This is a wrapper for R's axis function. See R's documentation for graphics::axis for further details.

Usage

1
axis(side, Rcss = "default", Rcssclass = NULL, ...)

Arguments

side

integer specifying what side of the plot to draw the axis. The codes are 1: bottom, 2: left, 3: top, 4: top. vertices

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()

Rcssclass

sub class of style sheet

...

Further parameters, see documentation of graphics::axis

Examples

1
2
3
4
# draw separate axes on an empty plot
plot(c(0, 1), c(0, 1), type="n", axes=FALSE, xlab="x-axis", ylab="")
axis(1)
axis(3)

tkonopka/Rcssplot documentation built on Jan. 21, 2021, 11:36 p.m.