Learn R Programming

AgroR (version 1.3.6)

bargraph_onefactor: Graph: Group DIC, DBC and DQL functions column charts

Description

Groups two or more column charts exported from DIC, DBC or DQL function

Usage

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

Value

Returns a column chart grouped by facets

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 error bar

width.col

Width Column

sup

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

Examples

Run this code
library(AgroR)
data("laranja")
a=with(laranja, DBC(trat, bloco, resp, ylab = "Number of fruits/plants"))
b=with(laranja, DBC(trat, bloco, resp,  ylab = "Number of fruits/plants"))
c=with(laranja, DBC(trat, bloco, resp, ylab = "Number of fruits/plants"))
bargraph_onefactor(analysis = list(a,b,c), labels = c("One","Two","Three"),ocult.box = TRUE)

Run the code above in your browser using DataLab