barplot_positive {AgroR}R Documentation

Graph: Positive barplot

Description

Column chart with two variables that assume a positive response and represented by opposite sides, such as dry mass of the area and dry mass of the root

Usage

barplot_positive(
  a,
  b,
  ylab = "Response",
  var_name = c("Var1", "Var2"),
  legend.title = "Variable",
  fill_color = c("darkgreen", "brown"),
  width.col = 0.9,
  width.bar = 0.2
)

Arguments

a

Object of DIC, DBC or DQL functions

b

Object of DIC, DBC or DQL functions

ylab

Y axis names

var_name

Name of the variable

legend.title

Legend title

fill_color

Bar fill color

width.col

Width Column

width.bar

Width error bar

Value

The function returns a column chart with two positive sides

Note

When there is only an effect of the isolated factor in the case of factorial or subdivided plots, it is possible to use the barplot_positive function.

Author(s)

Gabriel Danilo Shimizu, shimizu@uel.br

See Also

radargraph, sk_graph, plot_TH, corgraph, spider_graph, line_plot

Examples

data("passiflora")
attach(passiflora)
a=with(passiflora, DBC(trat, bloco, MSPA))
b=with(passiflora, DBC(trat, bloco, MSR))
barplot_positive(a, b, var_name = c("DMAP","DRM"), ylab = "Dry root (g)")

a=with(passiflora, DIC(trat, MSPA,test = "noparametric"))
b=with(passiflora, DIC(trat, MSR))
barplot_positive(a, b, var_name = c("DMAP","DRM"), ylab = "Dry root (g)")

[Package AgroR version 1.3.5 Index]