# NOT RUN {
# basic plot with legend
pentadProbs(mx = daily_tmax, mn = daily_tmin,
temp_dates = seq.Date(as.Date('1981-01-01'),
as.Date('2010-12-31'), by ='day'),
out = NULL, min_abs = -20, max_abs = 44,
plot_years = NULL, show_legend = TRUE)
# years 1981 and 2009 are plotted over the average frequencies
pentadProbs(mx = daily_tmax, mn = daily_tmin,
temp_dates = seq.Date(as.Date('1981-01-01'),
as.Date('2010-12-31'), by ='day'),
out = NULL, min_abs = -20, max_abs = 44,
plot_years = c(1981, 2009), show_legend = TRUE)
# }
Run the code above in your browser using DataLab