Modérateur : Groupe des modérateurs
Code : Tout sélectionner
<<toto, echo=FALSE, comment=NA, results='asis'>>=
#Data
a<- c(1:100)
b<- c(100:200)
#Plot1
plot(a)
cat("%")
#Plot2
plot(b)
@
Code : Tout sélectionner
<<two-high, fig.width=3, fig.height=2.5, out.width='.49\\linewidth', fig.show='hold'>>=
data(cars)
plot(cars)
boxplot(cars$dist,xlab='dist')
@
Code : Tout sélectionner
packageVersion("knitr")
Code : Tout sélectionner
\documentclass{article}
\begin{document}
Blabla
\begin{tabular}{rl}
<<"plota", echo=FALSE, out.width="7cm", fig=TRUE>>=
x <- 1:10
y <- runif(10)
plot(x, y)
@
&
<<"plotb", echo=FALSE, out.width="7cm", fig=TRUE>>=
x <- 1:10
y <- runif(10)
plot(x, y)
@
\end{tabular}
Blabla encore
\end{document}
Retourner vers « Questions en cours »
Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 1 invité