<div dir="ltr">vc diz p ggplot que o nome da variavel do eixo X e' "variaveis"... mas no seu data.frame nao existe tal variavel.</div><div class="gmail_extra"><br><br><div class="gmail_quote">Em 11 de agosto de 2014 15:26, geovane barbosa <span dir="ltr"><<a href="mailto:geovanecb@yahoo.com.br" target="_blank">geovanecb@yahoo.com.br</a>></span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10pt">
<div>Ola pessoal boa tarde </div><div><br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
Estou tentando fazer o gráfico do odds de acordo com a tabela abaixo.</div>
<div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><br></div>
<div style="background-color:transparent">
var<span style="white-space:pre-wrap"> </span> or<span style="white-space:pre-wrap"> <span style="white-space:pre-wrap"> </span> </span>lcl<span style="white-space:pre-wrap"> </span>ucl</div><div style="background-color:transparent">
A <span style="white-space:pre-wrap"> </span>1.552<span style="white-space:pre-wrap"> </span>1.401<span style="white-space:pre-wrap"> </span>1.719</div><div style="background-color:transparent">B<span style="white-space:pre-wrap"> </span>1.789<span style="white-space:pre-wrap"> </span>1.491<span style="white-space:pre-wrap"> </span>2.146</div>
<div style="background-color:transparent">C<span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span>1.561<span style="white-space:pre-wrap"> </span>1.287<span style="white-space:pre-wrap"> </span>1.893</div>
<div style="background-color:transparent">D<span style="white-space:pre-wrap"> </span>1.432<span style="white-space:pre-wrap"> </span>1.237<span style="white-space:pre-wrap"> </span>1.658</div><div style="background-color:transparent">
E<span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span>1.259<span style="white-space:pre-wrap"> </span>1.025<span style="white-space:pre-wrap"> </span>1.548</div><div style="background-color:transparent">
F<span style="white-space:pre-wrap"> </span>1.363<span style="white-space:pre-wrap"> </span>1.112<span style="white-space:pre-wrap"> </span>1.671</div><div style="background-color:transparent">G<span style="white-space:pre-wrap"> </span>1.554<span style="white-space:pre-wrap"> </span>1.258<span style="white-space:pre-wrap"> </span>1.920</div>
<div style="background-color:transparent">H<span style="white-space:pre-wrap"> </span>2.157<span style="white-space:pre-wrap"> </span>1.756<span style="white-space:pre-wrap"> </span>2.651</div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br>
</div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">com o seguinte comando.</div>
<div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><br></div>
<div style="background-color:transparent">
<br></div><div style="background-color:transparent">dat <- read.table("tabela1.txt", header = T)</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">ggplot(dat, aes(x = variaveis, y = or, ymin = lcl, ymax = ucl))+ ylab("Odds ratio & 95% CI") + geom_hline(aes(yintercept = 1)) + scale_color_discrete(name = "Lag") + xlab("")</div>
<div style="background-color:transparent">Erro em as.environment(where) : 'where' faltante</div><div><br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
Ele da o erro acima, o que eu faço?</div>
<div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><br></div>
<div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
abraços</div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br>
</div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><br>
</div>
<div style="background-color:transparent"><br></div><div style="background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-size:13.333333969116211px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">
<br></div><div style="background-color:transparent"><br></div></div></div><br>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div dir="ltr"><a href="http://about.me/benilton" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;color:rgb(43,130,173);text-decoration:none;line-height:18.200000762939453px" target="_blank"><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;border-spacing:0px">
<tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline">
<td colspan="3" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;height:30px"> </td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline">
<td align="left" valign="top" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;line-height:1"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline">
<img src="http://d13pix9kaak6wt.cloudfront.net/signature/me-badge.png" alt="Benilton Carvalho on about.me" width="48" height="48" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block"></div>
</td><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:8px"> </td><td align="left" valign="middle" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:middle;height:48px;line-height:0.9">
<div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-size:18px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline;line-height:1;color:rgb(51,51,51)">
Benilton Carvalho</div><div style="margin:2px 0px 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-size:12px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline">
about.me/benilton</div></td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td colspan="3" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;height:20px">
</td></tr></tbody></table></a></div>
</div>