Learn R Programming

AgroR (version 1.3.6)

barplot_positive: 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
)

Value

The function returns a column chart with two positive sides

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

Author

Gabriel Danilo Shimizu, shimizu@uel.br

See Also

radargraph, sk_graph, plot_TH, corgraph, spider_graph, line_plot

Examples

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

Run the code above in your browser using DataLab