Build data and AI skills | 50% off

Last chance! 50% off unlimited learning

Sale ends in


AgroR (version 1.3.6)

barfacet: 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"
)

Value

Returns a bar chart for one factor

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

Author

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

Run this code
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"))

Run the code above in your browser using DataLab