I am trying to create a simple bar plot but the output is empty (picture attached) for some reason.
#test graph
test1 <- ggplot(leg19.votosglobais, aes(partido, votos), geom_bar(stat = "identity"))
The dataset is this:
> leg19.votosglobais
partido votos
1 ps 1908036
2 psd 1457704
3 be 500017
4 pcp-pev 332473
5 cds-pp 221774
6 pan 174511
7 ch 67826
8 il 67681
9 l 57172
10 a 40487
11 outros 167727
12 brancos 131704
13 nulos 123882
Any suggestions for how to fix this please?