ggBoxPlot: Box plot.

View source: R/ggBoxPlot.R

ggBoxPlotR Documentation

Box plot.

Description

A box plot with outliers.

Usage

ggBoxPlot(
  df,
  x,
  y,
  fill,
  facet = NULL,
  colors = NULL,
  ylab = "Y",
  yscale = "continuous",
  yscale.expand = F,
  facet_type = "wrap",
  facet_scales = "free_y",
  facet_space = "fixed",
  facet_ncol = NULL,
  facet_nrow = NULL
)

Arguments

df

A data.frame of plot data.

x

A string of the column name for x.

y

A string of the column name for y.

fill

A string of the column name for fill.

facet

(Optional) A string or a pair of strings of the column name(s) for facet.

colors

(Optional) A vector of colors.

ylab

A string for y-axis label.

yscale

The y-axis scale. Can be either "continuous" or "log10".

yscale.expand

Logical. Whether the y-scale should be expanded down to zero.

facet_type

The facetting type. Can be either "wrap" or "grid".

facet_scales

The facetting scales.

facet_space

The spacing scheme in the facetting grid.

facet_ncol

Number of columns.

facet_nrow

Number of rows.


masato-ogishi/plotUtility documentation built on July 27, 2023, 11:37 a.m.