plot_bandgaps | R Documentation |
Band energies and gaps of user-selectable semiconductors using R base graphics. There is no practical way to return a plot object using base graphics, so this function does not return anything, it just creates the plot. It is probably well-suited for use in a Rmd or LaTeX document. The generated plot requires the LaTeX packages siunitx and chemformula to typeset the text labels.
plot_bandgaps(materials, secondary.scale = "AVS", dev = FALSE)
materials |
a subset of |
secondary.scale |
select reference electrode for the secondary y-axis Default secondary scale is AVS (vacuum scale). Set this argument to empty string to disable the secondary scale. |
dev |
used for testing during development. Setting to TRUE enables extra plot elements such as x-axis and grids to support development. |
## Not run:
plot_bandgaps(bandgaps::semiconductors %>%
filter(class == "oxide") %>%
filter(str_detect(formula, "Fe")),
secondary.scale = "AVS")
plot_bandgaps(bandgaps::semiconductors %>%
filter(class == "oxide") %>%
filter(str_detect(formula, "O2")))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.