<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Mauro,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>Aparentemente o seu computador tem arquiteturas diferentes de R e de java. O meu palpite é que o seu java seja de 32bits e o R seja de 64bits, e essa diferença causa o erro.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;
 background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>Para resolver, você deve ou instalar o Java 64bits ou usar o R32bits (que tipicamente é incluído durante a instalação do R).</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>Como a versão 64bits do Java é pouco usada (exige versões 64bits dos navegadores, que quase ninguém usa por questões de compatibilidade com
 plugins), eu recomendo que você siga o outro caminho: use a versão 32bits do seu R (R x86) para rodar esse script.</span></div><div></div><div> </div><div>Saudações,<br>--<br>Thiago V. dos Santos<br>PhD student<br>Land and Atmospheric Science<br>University of Minnesota<br>http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm<br>Phone: (612) 323 9898</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, September 16, 2014 9:42 PM, Mauro Sznelwar <sznelwar@uol.com.br> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv0105261893"><div dir="ltr">
<div dir="ltr">
<div style="font-size: 12pt; font-family: Calibri; color: rgb(0, 0, 0);">
<div>
<div><font color="#9b00d3" face="Arial">Tentei rodar o vosso exemplo e deu problema 
logo quando chamei a biblioteca, alguém sabe o que é?</font></div>
<div> </div>
<div>> library(repmis) # reads text data directly from dropbox - no need to 
download any file</div>
<div>Error : .onLoad falhou em loadNamespace() para 'rJava', detalhes:</div>
<div>  chamada: fun(libname, pkgname)</div>
<div>  erro: No CurrentVersion entry in Software/JavaSoft registry! Try 
re-installing Java and make sure R and Java have matching architectures.</div>
<div>Erro: package or namespace load failed for ‘repmis’</div>
<div class="yiv0105261893yqt9816717513" id="yiv0105261893yqtfd09492"><div style="font-size: small; font-family: Calibri; font-weight: normal; color: rgb(0, 0, 0); font-style: normal; text-decoration: none; display: inline;"></div>
<div> </div></div></div><div class="yiv0105261893yqt9816717513" id="yiv0105261893yqtfd66420">
<div style="font-size: small; font-family: Calibri; font-weight: normal; color: rgb(0, 0, 0); font-style: normal; text-decoration: none; display: inline;">
<div style="font-size: 12pt; font-family: helveticaneue, 'helvetica neue', helvetica, arial, 'lucida grande', sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<div><span>Caros Izidro Pi, Luis Iván e Jônatan,</span></div>
<div style="font-size: 16px; font-family: helveticaneue, 'Helvetica Neue', helvetica, arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0); font-style: normal; background-color: transparent;"><span><br clear="none"></span></div>
<div style="font-size: 16px; font-family: helveticaneue, 'Helvetica Neue', helvetica, arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0); font-style: normal; background-color: transparent;"><span>Obrigado 
pelas suas respostas. Analisei cada uma delas e todas foram úteis, mas o Jônatan 
foi um passo adiante e antecipou a reposta para a próxima pergunta que eu ia 
fazer na lista - como combinar dois gráficos mantendo um mesmo eixo x. 
</span></div>
<div></div>
<div> </div>
<div>Saudações,<br clear="none">--<br clear="none">Thiago V. dos Santos<br clear="none">PhD student<br clear="none">Land and 
Atmospheric Science<br clear="none">University of 
Minnesota<br clear="none">http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm<br clear="none">Phone: 
(612) 323 9898</div>
<div class="yiv0105261893qtdSeparateBR"><br clear="none"><br clear="none"></div>
<div class="yiv0105261893yahoo_quoted" style="display: block;">
<div style="font-size: 12pt; font-family: helveticaneue, 'Helvetica Neue', helvetica, arial, 'Lucida Grande', sans-serif;">
<div style="font-size: 12pt; font-family: helveticaneue, 'Helvetica Neue', helvetica, arial, 'Lucida Grande', sans-serif;">
<div dir="ltr"><font size="2" face="Arial">On Thursday, September 11, 2014 8:13 AM, 
Jônatan <jdtatsch@gmail.com> wrote:<br clear="none"></font></div><br clear="none"><br clear="none">
<div class="yiv0105261893y_msg_container">
<div id="yiv0105261893">
<div>
<div dir="ltr">
<div>Segue algumas alternativas:</div>
<div> </div>
<div>library(repmis) # reads text data directly from dropbox - no need to 
download any file</div>
<div># read data</div>
<div>url <- '<a rel="nofollow" shape="rect" target="_blank" href="https://dl.dropboxusercontent.com/u/27700634/precip.txt">https://dl.dropboxusercontent.com/u/27700634/precip.txt</a>'</div>
<div>tmp <- repmis::source_data(url, sep = '', header = TRUE)</div>
<div> </div>
<div># convert julian day to date</div>
<div>date <- as.Date(tmp$julian, origin='2011-12-31')</div>
<div>data <- cbind(date, tmp)</div>
<div>head(data)</div>
<div># define vector with depth of soil layers</div>
<div>depths <- c(0.05,0.10,0.20,0.30,</div>
<div>                 
0.40,0.60,0.80,1.00,</div>
<div>                 
1.50,2.00,2.50)</div>
<div> </div>
<div># teste com lattice</div>
<div>cols <- ncol(data):4</div>
<div>levelplot(as.matrix(data[, cols]), </div>
<div>          aspect = "fill", 
xlab = "date", ylab = "soil Moist.",</div>
<div>          scales = list(x = 
list(at = which(date %in% pretty(date)), </div>
<div>                                 
labels = pretty(date)),</div>
<div>                        
y = list(at = length(cols):1, labels = depths)),</div>
<div>          contour = T)</div>
<div> </div>
<div># Plot soil moisture profile</div>
<div> </div>
<div># como são profundidades (abaixo da superfície) use a convenção de z 
negativo </div>
<div># acrescentei a chuva, precisa ajustar ylabels, mtext() resolve</div>
<div> </div>
<div>x11()</div>
<div>op <- par(mar = c(3,4,12,3))</div>
<div>plot <- filled.contour(date, sort(-depths), as.matrix(data[, cols]), 
ylab = expression(theta(m^3~~m^-3)))</div>
<div>par(new=T,mar=c(23,4,1,8))</div>
<div>with(data,</div>
<div>      plot(date, precip, type = "h", xaxt = "n", 
xpd = T, xaxs="i", ylab = "Precip (mm)", xlab = ""))</div>
<div>par(op)</div>
<div> </div>
<div><font face="Calibri"></font> </div></div></div></div><br clear="none"><br clear="none"></div></div></div></div></div>
<div>
</div><hr>

<div> </div></div></div></div></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>