bargraph_twofactor: Graph: Group FAT2DIC, FAT2DBC, PSUBDIC or PSUBDBC functions...

View source: R/bargraph_twofactor.R

bargraph_twofactorR Documentation

Graph: Group FAT2DIC, FAT2DBC, PSUBDIC or PSUBDBC functions column charts

Description

Groups two or more column charts exported from FAT2DIC, FAT2DBC, PSUBDIC or PSUBDBC function

Usage

bargraph_twofactor(
  analysis,
  labels = NULL,
  ocult.facet = FALSE,
  ocult.box = FALSE,
  facet.size = 14,
  ylab = NULL,
  width.bar = 0.3,
  sup = NULL
)

Arguments

analysis

List with DIC, DBC or DQL object

labels

Vector with the name of the facets

ocult.facet

Hide facets

ocult.box

Hide box

facet.size

Font size facets

ylab

Y-axis name

width.bar

Width bar

sup

Number of units above the standard deviation or average bar on the graph

Value

Returns a column chart grouped by facets

Examples

library(AgroR)
data(corn)
a=with(corn, FAT2DIC(A, B, Resp, quali=c(TRUE, TRUE),ylab="Heigth (cm)"))
b=with(corn, FAT2DIC(A, B, Resp, mcomp="sk", quali=c(TRUE, TRUE),ylab="Heigth (cm)"))
bargraph_twofactor(analysis = list(a,b), labels = c("One","Two"),ocult.box = TRUE)

AgroR documentation built on May 29, 2024, 4:18 a.m.