View source: R/barfacets_function.R
| barfacet | R Documentation | 
This is a function of the bar graph for one factor with facets
barfacet(
  model,
  facet = NULL,
  theme = theme_bw(),
  horiz = FALSE,
  geom = "bar",
  fill = "lightblue",
  pointsize = 4.5,
  facet.background = "gray80"
)
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  | 
facet.background | 
 Color background in facet  | 
Returns a bar chart for one factor
Gabriel Danilo Shimizu, gabrield.shimizu@gmail.com
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.