# NOT RUN {
library(photobiologyWavebands)
# ggplot() methods for spectral objects set a default mapping for x and y.
ggplot(sun.spct) +
stat_wb_box(w.band = VIS_bands()) +
geom_line() +
scale_fill_identity()
ggplot(sun.spct) +
stat_wb_box(w.band = VIS_bands(), color = "white") +
geom_line() +
scale_fill_identity()
# }
Run the code above in your browser using DataLab