<div dir="ltr"><div><font face="arial, helvetica, sans-serif">Alguns ajustes...</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">### <code r></font></div>
<div><font face="courier new, monospace">tempo <- c(4,5,6,7,8,9,10,11)</font></div><div><font face="courier new, monospace">nomes <- paste0("A", rep(c(1,3),each=6), rep(LETTERS[1:3],each=2), rep(c(10,20))); nomes</font></div>
<div><font face="courier new, monospace">trat <- rep(LETTERS[1:3],each=2)</font></div><div><font face="courier new, monospace">xlabs <- c(rep(NA,4),rep("tempo",2))</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace">set.seed(765)</font></div><div><font face="courier new, monospace">dados <- data.frame(sapply(nomes, function(x) assign(x, rnorm(8,90,4))))</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace">x11() ### abre tela gráfica (requerido para funcionar no RStudio)</font></div><div><font face="courier new, monospace">par(mfrow=c(3,2),</font></div><div><font face="courier new, monospace"> mar = c(4, 4, 4, 4), ### margens de cada gráfico individual - c(bottom, left, top, right)</font></div>
<div><font face="courier new, monospace"> oma = c(5, 3, 2, 1), ### margens no entorno do conjunto de gráficos</font></div><div><font face="courier new, monospace"> xpd = NA) ### libera legenda em qualquer parte da tela gráfica</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">for (i in 1:6) {</font></div><div><font face="courier new, monospace"> j=i+6</font></div><div><font face="courier new, monospace"> plot(dados[,i]~tempo, axes=F, xlab=xlabs[i], ylab="medida", main=paste('Tratamento',trat[i]),</font></div>
<div><font face="courier new, monospace"> cex.main=1, type = 'b', xlim=c(4,11), ylim=c(80,100))</font></div><div><font face="courier new, monospace"> lines(dados[,j]~tempo, type="o", pch="+", lty=2) </font></div>
<div><font face="courier new, monospace"> axis(2)</font></div><div><font face="courier new, monospace"> if (i==1) mtext('10 repetições', line=2.9, cex=.8)</font></div><div><font face="courier new, monospace"> if (i==2) mtext('20 repetições', line=2.9, cex=.8)</font></div>
<div><font face="courier new, monospace"> if (i>=5) axis(1, at = seq(4, 11, 1))}</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><br></font></div>
<div><font face="courier new, monospace">legend(-2,60,c("Opção 1","Opção 3"),lty = c(1,2),ncol = 1,horiz=TRUE)</font></div><div><font face="courier new, monospace">### use locator(1) para obter coordenadas clicando na tela gráfica</font></div>
<div><font face="courier new, monospace">### </code></font></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Éder Comunello <<a href="mailto:comunello.eder@gmail.com" target="_blank">c</a><a href="mailto:omunello.eder@gmail.com" target="_blank">omunello.eder@gmail.com</a>> <br>
Dourados, MS - [22 16.5'S, 54 49'W]<br></div></div>
<br></div></div>