I want to make a report with the graphics I obtain with R. Here I show you both images produced with site_rose(site_ref)
and site_time_series(site_ref)
I designed.
But after running sweave('Profile.Rnw') and getting Profile.tex I obtain Profile-002.pdf and Profile-003.pdf that these last two documents have 0KB. And so I get a .pdf report without any figure at all. Here I show you the code:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\title{Anàlisi in situ emplaçament}
\author{Jonel Palou Visa}
\begin{document}
\maketitle
\begin{center}
<<fig=TRUE,echo=TRUE>>=
site_ref <- site_time_series(site_ref,peaks=T,stationary=T)
@
\end{center}
\begin{center}
<<fig=TRUE,echo=TRUE>>=
site_rose(site_ref)
@
\end{center}
\end{document}
I would like to know if there is a problem with the new device I call in order to plot the figures or what is my real problem. The code for both functions is too large to show here, there isn't any extrange in these functions because to get the figure I only call plot(...)
TRUE
instead ofT
.TRUE
is an R constant which represents the Boolean value you're aiming for.T
can be defined to mean anything you want. For instance,T <- FALSE
is a valid command and would really confuse your code. – Jeff Allen