Ola pessoal boa tarde
Estou tentando fazer o gráfico do odds de acordo com a tabela abaixo.
var or lcl ucl
A 1.552 1.401 1.719
B 1.789 1.491 2.146
C 1.561 1.287 1.893
D 1.432 1.237 1.658
E 1.259 1.025 1.548
F 1.363 1.112 1.671
G 1.554 1.258 1.920
H 2.157 1.756 2.651
com o seguinte comando.
dat <- read.table("tabela1.txt", header = T)
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("")
Erro em as.environment(where) : 'where' faltante
Ele da o erro acima, o que eu faço?
abraços