As you can see in the code, I filtered a row of interest.
teste <- anos[, 1:73] %>% dplyr::filter(MUNICIPIO == "ABAETE (MG)", ANO == 2010)
with this code I get a row name and a value associated:
ALFAFA FENADA ALGODAO ARBOREO (EM CAROCO) ABACAXI ...
0 0 277
then I use the following to bring the row name to the vector
setDT(teste, keep.rownames = TRUE)
and then I transpose test so I can plot "teste"
teste <- t(teste)
BUUUT, the numbers in the second column generated are characters and, when I call
the numbers are changed. Like "0" become "1", "277" become "5"...
I am not sure if I was clear but I would appreciate any suggestion.