Learn R Programming

clinDataReview (version 1.6.2)

getAxisLabs: Set different variables for the x-axis labels

Description

Set different variables for the x-axis labels

Usage

getAxisLabs(data, var, labVars)

Value

Named character vector. The names are the position in the x-axis, the values are the new labels.

Arguments

data

Data.frame with data.

var

String with variable displayed in the axis.

labVars

Character vector with variable(s) to be displayed as the labels of the ticks in the axis.

Author

Laure Cougnaud