grafico1 <- ggplot(dados_analise1, aes(x = Renda, y = Taxa_Escolaridade)) +
geom_point(color = "#2c3e50", size = 3, alpha = 0.7) +
geom_smooth(method = "lm", color = "#e74c3c", se = FALSE, linewidth = 1.2) +
theme_minimal() +
labs(
title = "Relação entre Nível de Renda e Escolaridade por Estado (2025)",
x = "Rendimento Médio Real Domiciliar per Capita (R$)",
y = "Taxa de Escolaridade / Instrução (%)",
caption = "Fonte: IBGE / SIDRA"
) +
theme(
plot.title = element_text(face = "bold", size = 14, hjust = 0.5),
axis.title = element_text(face = "bold")
)
print(grafico1)