Questions tagged [rose-plot]

This tag is for rose plots (coxcomb), wind rose plots, and polar bar plots. Use the windrose tag for questions about that python package.

52 questions
44
votes
3 answers

Wind rose with ggplot (R)?

I am looking for good R code (or package) that uses ggplot2 to create wind roses that show the frequency, magnitude and direction of winds. I'm particularly interested in ggplot2 as building the plot that way gives me the chance to leverage the…
Andy Clifton
  • 4,926
  • 3
  • 35
  • 47
8
votes
1 answer

How does one add a colorbar to a polar plot (rose diagram)?

In this example the color is correlative to the radius of each bar. How would one add a colorbar to this plot? My code mimics a "rose diagram" projection which is essentially a bar chart on a polar projection. here is a part of it: angle =…
Shahar
  • 886
  • 1
  • 10
  • 22
6
votes
1 answer

custom scaling of a wind rose plot

I am trying to compare wind roses in python, but it is difficult because I cannot figure out how to make the same scale across all of the plots. Someone else asked the same question here Custom percentage scale used by windrose.py but it was not…
pwprnt
  • 521
  • 3
  • 9
  • 27
6
votes
3 answers

Rose diagram for migration data

I am trying to create a rose diagram showing average trajectory angle and distance for each subset of cells. I want the angle around the rose diagram to be the trajectory angle and the length of the bar in the diagram to be the total…
Erin
  • 85
  • 6
5
votes
2 answers

R: plot circular histograms/rose diagrams on map

I am trying to plot rose diagrams/ circular histograms on specific coordinates on a map analogous to drawing pie charts on a map as in the package mapplots. Below is an example generated with mapplots (see below for code), I'd like to replace the…
Lukas
  • 655
  • 8
  • 20
5
votes
3 answers

How to shift bins in a rose diagram using package 'circular' in R

I created a rose diagram of aspects in degrees for location data using the 'circular' package in R and the rose.diag function, with basic aspects of N, NE, E, etc., for a total of 8 bins. However, the bins do not straddle the aspects. In other…
user1955888
  • 51
  • 1
  • 2
4
votes
2 answers

(ROSE plot error) Error: Faceting variables must have at least one value

I am trying to plot monthly roseplots in R using the code below but I am encountering an error: "Error: Faceting variables must have at least one value" Here is the data that I am using Link to data This code came from a previous post: Rose plot…
Lyndz
  • 347
  • 1
  • 13
  • 30
4
votes
1 answer

Rose diagram in R

I want to draw a rose diagram of some circular data. I have been using the circular package and within this package it allows you to draw a simple rose diagram using the function: rose.diag. While this draws the diagram I want to be able to improve…
James
  • 143
  • 1
  • 1
  • 4
3
votes
1 answer

Wind rose chart with ggplot

I am trying to use the fantastic wind rose R code from Andy Clifton at https://stackoverflow.com/a/17266781/709777 for plotting data extracted from a meteorological model. From the model I get u and v wind components in m/s. Then I compute wind…
pacomet
  • 5,011
  • 12
  • 59
  • 111
2
votes
0 answers

Windrose using wind data - not sure about convention

I'm doing some statistics on ERA5 surface wind data. I've downloaded the u,v components and estimated wind direction using atan2(v,u) and converting it to positive degrees. Based on the ERA5 documentation, the positive direction is for wind blowing…
Kiarasky
  • 29
  • 2
2
votes
1 answer

Create a 180 degree rose diagram with differents colours for groups?

I am plotting a distribution of angles with the rose.diag function from the circular library. Input data are degrees. circ <- circular(data2$mean_ang) summary(circ) rose.diag(circ, pch = 16, cex = 1, axes = TRUE, shrink = 1, col=3, prop = 2, …
Anne Elise
  • 133
  • 2
  • 9
2
votes
1 answer

Plotly: modified rose chart (pie chart with variable radius)

I have a dataframe with name df with colmns categories and weight. My goal is to do a graph like one of the listed here (but larger!) from the row data in df, where every color belongs to only one row and the radius is proportional to weight…
user13176491
2
votes
1 answer

subplots in windrose diagram

I am very beginner to python. By following this example I tried to make windrose subplots like: but I am getting plots in this way: The code that I tried is: ws = np.random.random(500) * 6 wd = np.random.random(500) *…
bikuser
  • 2,013
  • 4
  • 33
  • 57
2
votes
1 answer

Plotting a wind rose the Windrose Library

I've got wind data which includes wind speed and wind direction. However, my wind direction is defined anti-clockwise. Meaning, 45 deg for my data is actually NW. Is there any chance to change this using Windrose in Python? I've got the following…
Kakemonster
  • 97
  • 2
  • 11
2
votes
1 answer

Windrose legend bracket format and loc

Below I have plotted a wind rose using Windrose based on this. Firstly, the legend is covering part of the rose but when I try to use loc to set its location the legend disappears. Secondly, the legend closing brackets are wrong i.e. [0.0 : 1.0[ any…
squar_o
  • 557
  • 2
  • 11
  • 36
1
2 3 4