load("C:/Users/Usuario/Desktop/Base_de_dados-master/df_pokemon.RData")
pokemon <- df
names(pokemon)
## [1] "id" "pokemon" "species_id" "height"
## [5] "weight" "base_experience" "type_1" "type_2"
## [9] "attack" "defense" "hp" "special_attack"
## [13] "special_defense" "speed" "color_1" "color_2"
## [17] "color_f" "egg_group_1" "egg_group_2" "url_image"
## [21] "x" "y"
pokemon_tipo <- table(pokemon$type_1)
pokemon_tipo
##
## bug dark dragon electric fairy fighting fire flying
## 63 28 24 36 17 25 46 3
## ghost grass ground ice normal poison psychic rock
## 23 66 30 23 93 28 46 40
## steel water
## 22 105
barplot(pokemon_tipo, las = 2, col = "red",
main = "solução 1")