0
Hello, everybody!
I am working with IPEA IVS data, which can be accessed here. So far, I have two problems: I can’t read the axis and I can’t color by the pattern I want.
About the first problem, it is quite obvious in the image below:
My code is as follows::
labels_x <- seq(0, 2000, length.out=5)
labels_y <- seq(0, 100, length.out=5)
ggplot(dados, aes(x = dados$`Renda per capita`,
y = dados$`% de 18 a 20 anos com médio completo`))+
geom_point(color = dados$UF) +
scale_y_continuous(breaks = labels_y)+
scale_x_continuous(breaks=labels_x)
The most common form, with scale_x_continuous
has submitted the following error:
Error: Discrete value supplied to continuous scale
I have tried it in several ways and none helps me. I don’t know what else to do or where to look.
The second problem is that I would like to color by region, not by state, just for the sake of making it easier to show subtitles. However, the following error appears:
Error in grDevices::col2rgb(colour, TRUE) : invalid color name 'Norte'
Thanks for the tips! I know you don’t need to use $, but my base had a lot of columns and badly formatted names. Believe me, it made it easier.
– Matheus Pasche