Learn R Programming

GerminaR (version 1.4.2)

plot_gr: Plot line or bar graphic

Description

Function for present the results in line or bar plot

Usage

plot_gr(
  data,
  type = "bar",
  x,
  y,
  group,
  x_lab = NULL,
  y_lab = NULL,
  g_lab = NULL,
  lgd = "top",
  sig = NULL,
  erb = FALSE,
  y_lmt = NULL,
  y_brk = NULL,
  x_brk = NULL,
  g_brk = NULL,
  color = TRUE,
  ang = 0,
  font = 1.5
)

Arguments

data

Output dtsm fuction

type

Type of graphic. "bar" or "line"

x

Axis x variable

y

Axis y variable

group

Group variable

x_lab

Title for the axis x

y_lab

Title for the axis y

g_lab

Title for the legend

lgd

the position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector)

sig

Significance of the result (letters)

erb

Show the error bar.

y_lmt

limits of the y axis

y_brk

break of the y axis

x_brk

axis brakes labels in strign with doble space

g_brk

legend label in strign with doble space

color

colored figure (TRUE), otherwise black & white (FALSE)

ang

x text label angle

font

letter size in plot

Value

Line o bar plot