Skip to content

Commit

Permalink
Update barplot.Rmd
Browse files Browse the repository at this point in the history
The plot title is pixelated because it's been added several times, this is the fix
See details https://stackoverflow.com/questions/10952832/ggplot2-is-there-a-fix-for-jagged-poor-quality-text-produced-by-geom-text
  • Loading branch information
pixgarden committed Aug 11, 2021
1 parent cbcd25c commit f046400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/barplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ ggplot(tmp, aes(x=as.factor(id), y=Value)) + # Note that id is a factor. I
) +
coord_polar(start = 0) +
geom_text(data=label_tmp, aes(x=id, y=Value+200, label=Country ), color="black", fontface="bold",alpha=0.6, size=2.5, angle= label_tmp$angle, hjust=label_tmp$hjust, inherit.aes = FALSE ) +
geom_text( aes(x=24, y=8000, label="Who sells more weapons?"), color="black", inherit.aes = FALSE)
geom_text( aes(x=24, y=8000, label="Who sells more weapons?"), color="black", inherit.aes = FALSE, data = data.frame())
```


Expand Down

0 comments on commit f046400

Please sign in to comment.