Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why windRose plot low speed wind on outcircle #35

Open
quancui999 opened this issue Mar 9, 2023 · 1 comment
Open

why windRose plot low speed wind on outcircle #35

quancui999 opened this issue Mar 9, 2023 · 1 comment
Assignees

Comments

@quancui999
Copy link

quancui999 commented Mar 9, 2023

Hello,

I have noticed several differences with the current windRose function:

  1. The argument calm_wind is requested but not used in the function. I would expect that this value would be automatically added as one speed cut, and that windspeeds less than calm_wind would be shown as a transparent bin in the windrose plot.

  2. In the windRose plot, low-speed winds are shown as the outer circle and high-speed winds are shown as the inner circle. Is this specific to New Zealand? Could this be made customizable for users? I have attempted to adjust the speed cut from larger to smaller numbers, but it did not affect how the plot was displayed.

  3. The available color options are limited to those in the RColorBrewer package. Could the colors be made customizable like in any ggplot2 plots? This would allow for the use of user-defined colors and other packages that provide additional color schemes.

Thank you for your attention to these concerns. I appreciate any assistance you can provide in addressing these issues.

@blasee blasee self-assigned this Mar 9, 2023
blasee pushed a commit that referenced this issue Mar 9, 2023
@blasee
Copy link
Contributor

blasee commented Mar 9, 2023

Hi @quancui999,

Thanks for helping to improve clifro!

  1. I've updated the documentation for the calm_wind argument in the windrose function. This argument is actually referencing the direction of winds that are considered calm. By default, I follow the National Weather Service convention where winds with a direction of 0 are considered calm. This is also the approach taken in the circular R package.
  2. I've updated clifro. The new (dev) version now has the low-speed winds near the center:
library(clifro)
wind_df = data.frame(wind_speeds = c(rweibull(80, 2, 4), rweibull(20, 3, 9)),
                     wind_dirs = c(rnorm(80, 135, 55), rnorm(20, 315, 35)) %% 360,
                     station = rep(rep(c("Station A", "Station B"), 2),
                                   rep(c(40, 10), each = 2)))

# Plot a simple windrose using all the defaults, ignoring any facet variable
with(wind_df, windrose(wind_speeds, wind_dirs))

image

  1. Thanks for letting me know user-defined colours would be useful. I'll open up another issue for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants