ggBoxPlot: GetToIt

Description Usage Arguments Examples

View source: R/trybox.R

Description

A function about ordering boxplot plot ggplot2 BoxPlot in the order you want.

Usage

1
ggBoxPlot(listOflist, newOrder, noNames = FALSE, df = FALSE)

Arguments

listOflist

A list of lists, possibly named. The sub-lists must have 2 vectors of values to be boxplotted, each list must contain the same amount of values for now.

newOrder

An index of the lists in the order you want them to be plot

noNames

if no names given they are generated

df

Yes, you can give a data-frame...

Examples

1
2
3
4
magic <- list(list(c(rnorm(20,2,1)), c(rnorm(8,8,1))), list(c(rnorm(20,3,1)), c(rnorm(8,7,1))), list(c(rnorm(20,4,1)), c(rnorm(8,6,1))))
names(magic) <- c(1:length(magic))
order= c(1,3,2)
p <- ggBoxPlot(magic, order)

pterzian/GetToIt documentation built on May 26, 2019, 11:32 a.m.