library(photobiologyWavebands)
# ggplot() methods for spectral objects set a default mapping for x and y.
ggplot(sun.spct) +
geom_line() +
stat_wb_hbar(w.band = VIS_bands(), size = 1) +
scale_color_identity() +
theme_bw()
ggplot(sun.spct) +
geom_line() +
stat_wb_hbar(w.band = PAR(), size = 1) +
scale_color_identity() +
theme_bw()
ggplot(sun.spct) +
geom_line() +
stat_wb_hbar(w.band = PAR(), size = 1, ypos.fixed = 0) +
scale_color_identity() +
theme_bw()
ggplot(sun.spct) +
geom_line() +
stat_wb_hbar(w.band = CIE(), size = 1) +
scale_color_identity() +
theme_bw()
Run the code above in your browser using DataLab