fig_boxplot: Boxplot

Description Usage Arguments Examples

View source: R/figures.R

Description

Create a density plot based on, y x and optionally group aspects.

Usage

1
fig_boxplot(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

Arguments

g2

An object of class g2r as returned by g2r.

...

Any option, aesthetic (asp), or animation (Animation).

data

A data.frame containing data to chart or a list.

inherit_asp

Whether to inherit aspects from g2r.

name

Name of figure, useful to apply functions to specific figures.

Examples

1
2
3
4
5
6
7
8
9
df <- mtcars %>% 
  dplyr::mutate(
    cyl = as.factor(cyl),
    am = as.factor(am)
  )

g2(df, asp(cyl , mpg, color = am)) %>% 
  fig_boxplot()
 

JohnCoene/g2r documentation built on March 6, 2021, 8:11 p.m.