Fastboxplot: fast way to draw a boxplot based on ggplot2

Description Usage Arguments Value Author(s) Examples

View source: R/base_Fastboxplot.R

Description

fast way to draw a boxplot

Usage

1
2
Fastboxplot(data, x, y, fill, facet, palette = NULL, x.lab, y.lab,
  legend.position = "none", x.test.angle = 0, add.jitter = T)

Arguments

data

a data frame

x, y, fill, facet

parameters of ggpubr::ggboxplot

palette

fill color of box

x.lab

the title of x axis

y.lab

the title of y axis

legend.position

legend.position

x.test.angle

the angle of text on the x axis

add.jitter

whether add points with jitter style

Value

a boxplot

Author(s)

Weibin Huang<654751191@qq.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
data(mtcars)
data=mtcars
x="vs"
y="disp"
fill="vs"
facet=NULL
facet="am"
x.lab="vs of mtcars"
y.lab="disp of mtcars"

## quick start of Fastboxplot
Fastboxplot(data,
            x,y,fill,facet,
            palette=NULL,
            x.lab,y.lab,
            legend.position="none",
            x.test.angle=0,
            add.jitter=T)

#change fill color
show.color(mycolor)
Fastboxplot(data,
            x,y,fill,facet,
            palette=c("#8DD3C7","#FB8072"),
            x.lab,y.lab,
            legend.position="none",
            x.test.angle=0,
            add.jitter=T)

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.