Skip to content
Snippets Groups Projects
Commit 3a7cf480 authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Starts the analysis.

parent b81264ff
No related branches found
No related tags found
No related merge requests found
# Fatorial duplo com um tratamento adicional
```{r, eval = FALSE}
library(labestData)
ls("package:labestData")
tb <- expand.grid(NR = c("Baixo", "Convencional"),
Fitato = c("Alto", "Médio"),
Fitase = c(0, 750, 1500))
tb <- tb[with(tb, !(NR == "Convencional" & Fitase > 0)), ]
ftable(xtabs(~NR + Fitato + Fitase, data = tb))
```
```{r, message = FALSE}
library(tidyverse)
```
```{r}
# Importação dados dados.
tb <- read_tsv("./data-raw/fat2x3+2adic.txt",
comment = "#",
col_types = cols())
attr(tb, "spec") <- NULL
str(tb)
# Criando o fator NR.
tb$nr <- "Baixo"
tb$nr[with(tb, tratamento %in% c(1, 5))] <- "Convencional"
# Contagem das ocorrências dos pontos experimentais.
ftable(xtabs(~nr + fitato + fitase, data = tb))
# Análise exploratória.
ggplot(data = tb,
mapping = aes(x = fitase, y = cdaeb, color = nr)) +
facet_wrap(facets = ~fitato) +
geom_point() +
stat_summary(geom = "line", fun.y = "mean")
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment