desc2fat: Descriptive: Descriptive analysis (Two factors)

View source: R/desc2fat_function.R

desc2fatR Documentation

Descriptive: Descriptive analysis (Two factors)

Description

It performs the descriptive analysis of an experiment with two factors of interest.

Usage

desc2fat(
  f1,
  f2,
  response,
  ylab = "Response",
  xlab = c("F1", "F2"),
  theme = theme_classic()
)

Arguments

f1

Numeric or complex vector with factor 1 levels

f2

Numeric or complex vector with factor 2 levels

response

Numerical vector containing the response of the experiment.

ylab

Variable response name (Accepts the expression() function)

xlab

x name (this argument uses the parse function)

theme

ggplot2 theme (default is theme_classic())

Value

The function returns exploratory measures of position and dispersion, such as mean, median, maximum, minimum, coefficient of variation, etc ...

Author(s)

Gabriel Danilo Shimizu, gabrield.shimizu@gmail.com

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

library(AgroR)
data(cloro)
output=with(cloro, desc2fat(f1,f2,resp))
output$plot_single
output$plot_interaction

AgroR documentation built on July 2, 2025, 9:08 a.m.