Nreg: Analysis: Graph for not significant trend

View source: R/N_analysis.R

NregR Documentation

Analysis: Graph for not significant trend

Description

Graph for non-significant trend. Can be used within the multicurve command

Usage

Nreg(
  trat,
  resp,
  ylab = "Dependent",
  xlab = "Independent",
  error = "SE",
  theme = theme_classic(),
  legend.position = "top",
  legend.text = "not~significant",
  legend.add.mean = TRUE,
  legend.add.mean.name = "hat(y)",
  width.bar = NA,
  point = "all",
  textsize = 12,
  add.line = FALSE,
  add.line.mean = FALSE,
  linesize = 0.8,
  linetype = 1,
  pointsize = 4.5,
  pointshape = 21,
  fillshape = "gray",
  colorline = "black",
  fontfamily = "sans"
)

Arguments

trat

Numeric vector with dependent variable.

resp

Numeric vector with independent variable.

ylab

Dependent variable name (Accepts the expression() function)

xlab

Independent variable name (Accepts the expression() function)

error

Error bar (It can be SE - default, SD or FALSE)

theme

ggplot2 theme (default is theme_classic())

legend.position

legend position (default is "top")

legend.text

legend text

legend.add.mean

Add average in legend

legend.add.mean.name

Add media name

width.bar

Bar width

point

defines whether you want to plot all points ("all") or only the mean ("mean")

textsize

Font size

add.line

Add line

add.line.mean

Add line mean

linesize

line size

linetype

line type

pointsize

shape size

pointshape

format point (default is 21)

fillshape

Fill shape

colorline

Color lines

fontfamily

Font family

Value

The function returns an exploratory graph of segments

Author(s)

Gabriel Danilo Shimizu

Leandro Simoes Azeredo Goncalves

Examples

library(AgroReg)
data("aristolochia")
attach(aristolochia)
Nreg(trat,resp)

AgroReg documentation built on May 29, 2024, 9:13 a.m.