Description Usage Arguments Value Examples
View source: R/buffer_windrose.R
buffer_windrose
creates a wind-rose based buffer shape.
1 | buffer_windrose(point, wind_frequency_df, radius = 100, width_factor = 2)
|
point |
Centre point of the buffer, must equal to true in: |
wind_frequency_df |
A wind frequency table, in the format provided by |
radius |
radius of the buffer (numeric). The radius of the largest sub-wedge of the wind-rose shaped buffer |
width_factor |
Scaling factor of the width of sub-wedges (numeric). Smaller number (<1) emphasize less-dominant wind-directions, (>1) emphasize dominant wind-directions. |
An object of class sfc_POLYGON
1 2 3 4 5 6 7 8 9 | example_point = sf::st_point(c(1,2))
example_point = sf::st_sfc(example_point)
example_point = sf::st_sf(example_point)
openair::windRose(wind_sample) -> wind_sample_wind_rose
wind_sample_wind_rose$data -> wind_frequency_df
buffer_windrose(example_point, wind_frequency_df, 100, 0.5) -> windrose_shaped_buffer
plot(windrose_shaped_buffer)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.