I have an Rhtml file from which I source a R file.
In this R file I am doing some plots.
p=ggplot(data)
p+geom_line()
Now, I can produce one plot after the other and when doing
knit(".Rhtml") then I get on figure after the other.
But I would like to have the figures side by side.
(Number of figures varies from report to report).
Is there a way to set an option in the Rhtml file, so that
the figures are arranged side by side (e.g. two or three or four columns).
So, actually it would be something like a par(mfrow).
Plots can be combined with the
gridExtrapackage. If you have, e.g., three plots (p1,p2, andp3), the command is:Have a look at the
gridExtrapackage for more details.