Learn R Programming

clinDataReview (version 1.6.2)

getJitterVar: Add jitter to the variable of the plot, based on the different groups of a grouping variable

Description

Add jitter to the variable of the plot, based on the different groups of a grouping variable

Usage

getJitterVar(data, var, byVar)

Value

Numeric vector of length nrow(data)

containing the jittered variable.

Arguments

data

Data.frame with data.

var

String with variable to add a jitter to.

byVar

String with variable containing the groups to jitter by.

Author

Laure Cougnaud