Last active
August 16, 2019 06:39
-
-
Save baptiste/d4abfa8a6c095d659f8879af5ad9531b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(jsonlite) | |
| library(ggplot2) | |
| library(ggChernoff) | |
| # https://github.com/Bowserinator/Periodic-Table-JSON | |
| d <- jsonlite::fromJSON('PeriodicTableJSON.json')[["elements"]] | |
| ggplot(d, aes(xpos,10-ypos)) + | |
| geom_chernoff(aes(fill=category, size = phase, smile = density, brow = molar_heat)) + | |
| geom_text(aes(label=symbol), vjust=2.5) + | |
| guides(fill=guide_legend(ncol=2)) + | |
| theme_void() + | |
| scale_brow_continuous(breaks = c(10, 25, 50))+ | |
| theme(legend.position = 'right', panel.background = element_rect(colour="black")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is really cool, but when I try to run the script, I get: