barfacet {AgroR}R Documentation

Graph: Bar graph for one factor with facets

Description

This is a function of the bar graph for one factor with facets

Usage

barfacet(
  model,
  facet = NULL,
  theme = theme_bw(),
  horiz = FALSE,
  geom = "bar",
  fill = "lightblue",
  pointsize = 4.5,
  width.bar = 0.15,
  facet.background = "gray80"
)

Arguments

model

DIC, DBC or DQL object

facet

vector with facets

theme

ggplot2 theme

horiz

horizontal bar or point (default is FALSE)

geom

graph type (columns or segments)

fill

fill bars

pointsize

Point size

width.bar

width of the error bars of a regression graph.

facet.background

Color background in facet

Value

Returns a bar chart for one factor

Author(s)

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

library(AgroR)
data("laranja")
a=with(laranja, DBC(trat, bloco, resp,
     mcomp = "sk",angle=45,sup = 10,family = "serif",
     ylab = "Number of fruits/plants"))
barfacet(a,c("S1","S1","S1","S1","S1",
             "S2","S2","S3","S3"))

[Package AgroR version 1.3.6 Index]