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