I have a R code block in a knitr
document (.Rnw
) that calls two functions draw.hist
and plot.timeseries
, of which each is supposed to create a different plot.
# HEADER
\documentclass{article}
\usepackage[default]{lato}
\usepackage[T1]{fontenc}
\usepackage[sc]{mathpazo}
\usepackage{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{2}
\usepackage{url}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\hypersetup{
pdfstartview={XYZ null null 1}}
# HERE I START DRAWING
<<test, echo = FALSE, warning = FALSE, fig.width=5, fig.height = 3 >>=
draw.hist(data$c1, "test_name_1")
plot.timeseries(data$c1)
@
I know that I could create two separate R blocks, but this is not an option for me.
How can I add line breaks between the two plots?
(I couldn't find anything suitable in the Chunk options. )