To produce the climatology for plotting
pr_make_climatology(df, x)
dataframe to use in pr_plot_Climatology functions
df <- data.frame(Month = rep(1:12,10), StationCode = 'NSI', Values = runif(120, min=0, max=10))
pr_make_climatology(df, Month)
#> # A tibble: 12 × 6
#> Month StationCode mean N sd se
#> <int> <chr> <dbl> <int> <dbl> <dbl>
#> 1 1 NSI 5.16 10 3.68 1.16
#> 2 2 NSI 6.56 10 2.63 0.833
#> 3 3 NSI 3.79 10 2.29 0.724
#> 4 4 NSI 3.33 10 2.42 0.765
#> 5 5 NSI 4.42 10 2.95 0.932
#> 6 6 NSI 4.76 10 2.92 0.922
#> 7 7 NSI 6.26 10 3.21 1.01
#> 8 8 NSI 4.73 10 2.71 0.856
#> 9 9 NSI 3.99 10 1.88 0.593
#> 10 10 NSI 6.74 10 1.57 0.497
#> 11 11 NSI 5.44 10 2.48 0.784
#> 12 12 NSI 4.35 10 2.57 0.812