Learn R Programming

AgroR (version 1.3.7)

desc2fat: 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()
)

Value

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

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())

Author

Gabriel Danilo Shimizu, gabrield.shimizu@gmail.com

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

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

Run the code above in your browser using DataLab