pbs-assess / pacea

An R package to house Pacific Region ecosystem data to help facilitate an ecosystem approach to fisheries.
Other
14 stars 0 forks source link

Fix the colour filling-in for plot.pacea_t(). #15

Closed andrew-edwards closed 1 year ago

andrew-edwards commented 1 year ago

See notes in the function, and GoA code.

andrew-edwards commented 1 year ago

These give slightly different (wrong) results:

plot.pacea_index(pdo, smooth_over_year = TRUE)
plot.pacea_index(oni, smooth_over_year = TRUE) 
andrew-edwards commented 1 year ago

plot.pacea_index(oni, smooth_over_year = TRUE, style = "red_blue") gave image

andrew-edwards commented 1 year ago

Now correctly (once I push) gives image

andrew-edwards commented 1 year ago

And keeping every month (not smoothing over the year), plot.pacea_index(oni, smooth_over_year = FALSE, style = "red_blue") correctly gives image

andrew-edwards commented 1 year ago

Above two commits fix this, and I also added a note in the help about changing lwd to make the red_blue_bar plots look good.