Skip to content

Commit

Permalink
Reverse the stacked colours in the windrose function to have low wind…
Browse files Browse the repository at this point in the history
… speeds near the center.
  • Loading branch information
Seers, Blake (Environment, Aspendale) authored and Seers, Blake (Environment, Aspendale) committed Mar 9, 2023
1 parent 1d76bce commit 1eff5aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: clifro
Type: Package
Title: Easily Download and Visualise Climate Data from CliFlo
Version: 3.2-5.9002
Date: 2022-07-20
Version: 3.2-5.9003
Date: 2023-03-09
Authors@R: person("Blake", "Seers", role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "http://orcid.org/0000-0001-6841-4312"))
Expand Down
2 changes: 1 addition & 1 deletion R/cfData-plotMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ windrose = function(speed, direction, facet, n_directions = 12,
## (gg)Plot me
ggwindrose = ggplot(data = ggplot_df,
aes_string(x = "dir_bin", fill = "spd_bin", y = "proportion")) +
geom_bar(stat = "identity") +
geom_bar(stat = "identity", position = position_stack(reverse = TRUE)) +
scale_x_discrete(breaks = levels(ggplot_df$dir_bin)[seq(1, n_directions,
n_directions / 4)],
labels = c("N", "E", "S", "W"), drop = FALSE) +
Expand Down

1 comment on commit 1eff5aa

@blasee
Copy link
Contributor

@blasee blasee commented on 1eff5aa Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addresses #35

Please sign in to comment.