shuf: Randomly shuffle the plotting order

Description Usage Arguments Value Examples

View source: R/plotHelp.R

Description

Idea is to make the plot independent of the sample ordering

Usage

1

Arguments

df

data.frame (or similar 2D feature) whose rows will be shuffled

Value

An object with the rows shuffled

Examples

1
2
df <- data.frame(x = rnorm(1000), y = 0)
ggplot(shuf(df), aes(x=x, y=y, colour=x)) + geom_point()

caleblareau/BuenColors documentation built on March 7, 2020, 3:34 p.m.