w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
knitr Rnw latex: how to obtain a figure and caption in landscape mode that's full page width

Try this:

documentclass{article}
usepackage{fullpage}
usepackage{pdflscape}
egin{document}

egin{landscape}
egin{figure}
<<test, out.width='1\linewidth', fig.width=7, fig.height=4>>=
par(mar=c(4, 4, .1, .1)); plot(1:10)
@
caption{Caption Trial}
end{figure}
end{landscape}

end{document}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.